No need to check for NULL, free_private_key() already does that.
authorThomas Pornin <pornin@bolet.org>
Wed, 9 Nov 2016 20:00:11 +0000 (21:00 +0100)
committerThomas Pornin <pornin@bolet.org>
Wed, 9 Nov 2016 20:00:11 +0000 (21:00 +0100)
tools/server.c

index 0572928..89d529b 100644 (file)
@@ -1036,9 +1036,7 @@ server_exit:
                }
                xfree(chain);
        }
-       if (sk != NULL) {
-               free_private_key(sk);
-       }
+       free_private_key(sk);
        xfree(iobuf);
        xfree(cache);
        if (fd >= 0) {