summaryrefslogtreecommitdiff
path: root/source3/nsswitch/libwbclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-07-30 16:59:11 +0200
committerGünther Deschner <gd@samba.org>2008-07-30 17:08:31 +0200
commit4356a456822914c5a4c98c903b5ade3b0a3a909d (patch)
treefeeedf2ca44bc0079407e39c36ab155bd44433b4 /source3/nsswitch/libwbclient
parent7a7902692aabf7541cefd33cc2f825aa81ef4406 (diff)
downloadsamba-4356a456822914c5a4c98c903b5ade3b0a3a909d.tar.gz
samba-4356a456822914c5a4c98c903b5ade3b0a3a909d.tar.bz2
samba-4356a456822914c5a4c98c903b5ade3b0a3a909d.zip
libwbclient: let wbcStringToSid handle the global NULL sid.
Guenther (This used to be commit 09fed085bea9dae5bb8aacd986deed3d458e3574)
Diffstat (limited to 'source3/nsswitch/libwbclient')
-rw-r--r--source3/nsswitch/libwbclient/wbc_sid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_sid.c b/source3/nsswitch/libwbclient/wbc_sid.c
index 09bfc3e840..324a19bd56 100644
--- a/source3/nsswitch/libwbclient/wbc_sid.c
+++ b/source3/nsswitch/libwbclient/wbc_sid.c
@@ -123,7 +123,7 @@ wbcErr wbcStringToSid(const char *str,
p = q+1;
x = (uint32_t)strtol(p, &q, 10);
- if (x==0 || !q || *q!='-') {
+ if (!q || *q!='-') {
wbc_status = WBC_ERR_INVALID_SID;
BAIL_ON_WBC_ERROR(wbc_status);
}