]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
lib/x509/output.c: Remove unneeded NULL check in print_crt_pubkey()
authorTim Rühsen <tim.ruehsen@gmx.de>
Wed, 9 Oct 2019 16:11:10 +0000 (18:11 +0200)
committerTim Rühsen <tim.ruehsen@gmx.de>
Sun, 13 Oct 2019 10:27:19 +0000 (12:27 +0200)
Fixes Coverity issue 1454670

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
lib/x509/output.c

index 56214b6cdc330f7d56b8f26d8dc2be02751a954a..da45917753a46f853789ef960eaebc15460340e0 100644 (file)
@@ -1659,8 +1659,7 @@ print_crt_pubkey(gnutls_buffer_st * str, gnutls_x509_crt_t crt,
        ret = 0;
 
  cleanup:
-       if (pubkey)
-               gnutls_pubkey_deinit(pubkey);
+       gnutls_pubkey_deinit(pubkey);
 
        return ret;
 }