Explorar o código

Bug 611790 - fix coverify Defect Type: Null pointer dereferences issues 11940 - 12166

https://bugzilla.redhat.com/show_bug.cgi?id=611790
Resolves: bug 611790
Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11940 - 12166
Fix description: Catch possible NULL pointer in ldapu_cert_mapfn_default().
Endi S. Dewata %!s(int64=15) %!d(string=hai) anos
pai
achega
93d53d5e11
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/ldaputil/certmap.c

+ 1 - 0
lib/ldaputil/certmap.c

@@ -1221,6 +1221,7 @@ static int ldapu_cert_mapfn_default (void *cert_in, LDAP *ld,
 
 	if (rdns == NULL) {
 	    /* error */
+	    return LDAPU_ERR_INTERNAL;
 	}
     
 	/* find last RDN */