git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3640a
)
libwbclient: let wbcStringToSid handle the global NULL sid.
author
Günther Deschner
<gd@samba.org>
Wed, 30 Jul 2008 14:59:11 +0000
(16:59 +0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 30 Jul 2008 15:09:22 +0000
(17:09 +0200)
Guenther
(cherry picked from commit
09fed085bea9dae5bb8aacd986deed3d458e3574
)
source/nsswitch/libwbclient/wbc_sid.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/libwbclient/wbc_sid.c
b/source/nsswitch/libwbclient/wbc_sid.c
index 4bfd62caecf1ef12a81956c8dc6a6e5d30cd2976..ca5eab4ea3227d27da477c44057a5c271e4b01cb 100644
(file)
--- a/
source/nsswitch/libwbclient/wbc_sid.c
+++ b/
source/nsswitch/libwbclient/wbc_sid.c
@@
-124,7
+124,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);
}