]> the.earth.li Git - onak.git/blobdiff - keyd.c
Change delete_key to use a full fingerprint
[onak.git] / keyd.c
diff --git a/keyd.c b/keyd.c
index 9994dea303b812588fe00ff9d18cec5424ce8668..4520b14e99bfa43873801dac89e79eec1530da57 100644 (file)
--- 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: