-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
Description
clang's static code analyzer found this issue. The value rc
is stored but never read.
python-ldap/Modules/LDAPObject.c
Lines 1018 to 1036 in a06267f
} else { | |
int rc; | |
if (res_type == LDAP_RES_EXTENDED) { | |
struct berval *retdata = 0; | |
LDAP_BEGIN_ALLOW_THREADS( self ); | |
rc = ldap_parse_extended_result( self->ldap, msg, &retoid, &retdata, 0 ); | |
LDAP_END_ALLOW_THREADS( self ); | |
/* handle error rc!=0 here? */ | |
if (rc == LDAP_SUCCESS) { | |
valuestr = LDAPberval_to_object(retdata); | |
} | |
ber_bvfree( retdata ); | |
} | |
LDAP_BEGIN_ALLOW_THREADS( self ); | |
rc = ldap_parse_result( self->ldap, msg, &result, NULL, NULL, &refs, | |
&serverctrls, 0 ); | |
LDAP_END_ALLOW_THREADS( self ); | |
} |