diff options
-rw-r--r-- | source3/nsswitch/libwbclient/wbc_sid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_sid.c b/source3/nsswitch/libwbclient/wbc_sid.c index f3d58960f2a..475c9947e00 100644 --- a/source3/nsswitch/libwbclient/wbc_sid.c +++ b/source3/nsswitch/libwbclient/wbc_sid.c @@ -139,7 +139,8 @@ wbcErr wbcStringToSid(const char *str, p = q +1; sid->num_auths = 0; while (sid->num_auths < WBC_MAXSUBAUTHS) { - if ((x=(uint32_t)strtoul(p, &q, 10)) == 0) + x=(uint32_t)strtoul(p, &q, 10); + if (p == q) break; if (q == NULL) { wbc_status = WBC_ERR_INVALID_SID; |