]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
privkey_sign_raw_data: use assert to mark code which always succeeds
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 9 Aug 2018 14:09:21 +0000 (16:09 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 13 Aug 2018 19:50:32 +0000 (21:50 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/privkey.c

index ab2f2771b6e1d0ef316d7989307fc364e913ae58..26e3cee893fcdaf57b47fa33bf2f00c097ea17d5 100644 (file)
@@ -1488,6 +1488,7 @@ privkey_sign_raw_data(gnutls_privkey_t key,
 
                        if (se->pk == GNUTLS_PK_RSA) {
                                se = _gnutls_sign_to_entry(GNUTLS_SIGN_RSA_RAW);
+                               assert(se != NULL);
                        }
 
                        /* se may not be set here if we are doing legacy RSA */