diff options
author | Jakub Jelen <jjelen@redhat.com> | 2019-04-15 16:37:58 +0200 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2019-07-04 16:05:09 +0200 |
commit | 7e2cbd9e89508e9567378f358e0c6b1c82ea2103 (patch) | |
tree | d5f70ca246a224784f0dae0b0e002d5edd76fa2a /src | |
parent | 7fb171cdb84ae80e170587be97555a63986cd9f3 (diff) |
Drop bogus checks not to confuse static analysis checkers
The cac_delete_*_applet_private() functions already handle the NULL arguments
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cac.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1030,8 +1030,7 @@ cac_new_pki_applet_private(int i, const unsigned char *cert, return applet_private; failure: - if (applet_private) - cac_delete_pki_applet_private(applet_private); + cac_delete_pki_applet_private(applet_private); return NULL; } @@ -1760,9 +1759,7 @@ cac_new_ccc_applet_private(int cert_count) return applet_private; failure: - if (applet_private) { - cac_delete_ccc_applet_private(applet_private); - } + cac_delete_ccc_applet_private(applet_private); return NULL; } |