1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +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 commit is contained in:
Volker Lendecke 2008-06-27 11:13:07 +02:00
parent 9e2ab30d3c
commit 44a9e5b713

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);