1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Remove a strlen check that will never kick in

strlen(str)<2 will be caught by the explicit tests for str[0] and str[1] in the
lines above this.

Jerry, please check!

Volker
(This used to be commit 44a9e5b713c25ff2cc7215635a516f25359b045b)
This commit is contained in:
Volker Lendecke 2008-06-27 11:13:07 +02:00
parent 799252f635
commit f287cdb1f0

View File

@ -102,8 +102,7 @@ wbcErr wbcStringToSid(const char *str,
if (!str
|| (str[0]!='S' && str[0]!='s')
|| (str[1]!='-')
|| (strlen(str)<2))
|| (str[1]!='-'))
{
wbc_status = WBC_ERR_INVALID_PARAM;
BAIL_ON_WBC_ERROR(wbc_status);