X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keyd.c;h=4520b14e99bfa43873801dac89e79eec1530da57;hb=5cb163e87c7f0717aa94ca281a56e572c2a6c8f3;hp=9994dea303b812588fe00ff9d18cec5424ce8668;hpb=fd9ca85878543771a7f09afd821a5a5511e71aea;p=onak.git diff --git a/keyd.c b/keyd.c index 9994dea..4520b14 100644 --- a/keyd.c +++ b/keyd.c @@ -444,8 +444,9 @@ static int sock_do(struct onak_dbctx *dbctx, int fd) ret = 1; } if (ret == 0) { - bytes = read(fd, &keyid, sizeof(keyid)); - if (bytes != sizeof(keyid)) { + bytes = read(fd, &fingerprint, + sizeof(fingerprint)); + if (bytes != sizeof(fingerprint)) { ret = 1; } } @@ -455,7 +456,7 @@ static int sock_do(struct onak_dbctx *dbctx, int fd) ", result: %d", keyid, dbctx->delete_key(dbctx, - keyid, false)); + &fingerprint, false)); } break; case KEYD_CMD_GETFULLKEYID: