The 'clearing' variable was not being initialized
to zero which was cause the default key ring to
always be cleared.
Signed-off-by: Steve Dickson <steved@redhat.com>
int timeout = 600;
key_serial_t key;
char *progname, *keystr = NULL;
- int clearring, keymask = 0;
+ int clearing = 0, keymask = 0;
/* Set the basename */
if ((progname = strrchr(argv[0], '/')) != NULL)
keystr = strdup(optarg);
break;
case 'c':
- clearring++;
+ clearing++;
break;
case 'v':
verbose++;
rc = key_revoke(keystr, keymask);
return rc;
}
- if (clearring) {
+ if (clearing) {
rc = keyring_clear(DEFAULT_KEYRING);
return rc;
}