diff options
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/security/dom_sid.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index 2f80a36ae1..16b7af92f4 100644 --- a/libcli/security/dom_sid.c +++ b/libcli/security/dom_sid.c @@ -367,8 +367,7 @@ int dom_sid_string_buf(const struct dom_sid *sid, char *buf, int buflen) uint32_t ia; if (!sid) { - strlcpy(buf, "(NULL SID)", buflen); - return 10; /* strlen("(NULL SID)") */ + return strlcpy(buf, "(NULL SID)", buflen); } ia = (sid->id_auth[5]) + |