=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-pubkey.c,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- src/usr.bin/ssh/auth2-pubkey.c 2018/01/23 05:27:21 1.75 +++ src/usr.bin/ssh/auth2-pubkey.c 2018/02/07 22:52:45 1.76 @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-pubkey.c,v 1.75 2018/01/23 05:27:21 djm Exp $ */ +/* $OpenBSD: auth2-pubkey.c,v 1.76 2018/02/07 22:52:45 dtucker Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -468,8 +468,7 @@ /* Always consume entire file */ if (found_key) continue; - if (found != NULL) - sshkey_free(found); + sshkey_free(found); found = sshkey_new(sshkey_is_cert(key) ? KEY_UNSPEC : key->type); if (found == NULL) goto done; @@ -560,8 +559,7 @@ } } done: - if (found != NULL) - sshkey_free(found); + sshkey_free(found); if (!found_key) debug2("key not found"); return found_key;