From f287cdb1f046ccd5868c0553b6a79643f9782b01 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 27 Jun 2008 11:13:07 +0200 Subject: 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) --- source3/nsswitch/libwbclient/wbc_sid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/libwbclient/wbc_sid.c b/source3/nsswitch/libwbclient/wbc_sid.c index b0909263fc..eb115e1297 100644 --- a/source3/nsswitch/libwbclient/wbc_sid.c +++ b/source3/nsswitch/libwbclient/wbc_sid.c @@ -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); -- cgit