CID
1502873: Control flow issues (NO_EFFECT)
>>> This greater-than-or-equal-to-zero comparison of an unsigned value is always
true. "el->num_values >= 0U".
This is probably just a paranoia check as num_values should be set to at least
1 if the we have an LDAP entry.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
ret = ENOENT;
goto bad_option;
}
+ SMB_ASSERT(el->num_values != 0);
/*
* This is the Microsoft forwardable flag behavior.
* If the proxy (target) principal is NULL, and we have any authorized
* delegation target, allow to forward.
*/
- if (el->num_values >= 0 && target_principal == NULL) {
+ if (target_principal == NULL) {
return 0;
}