diff options
-rw-r--r-- | source3/smbd/lanman.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 2d6db8f2a3..da1def4361 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -1195,12 +1195,8 @@ static int fill_srv_info(struct srv_info_struct *service, break; } - if (buflen) { - *buflen = struct_len; - } - if (stringspace) { - *stringspace = len; - } + *buflen = struct_len; + *stringspace = len; return struct_len + len; } |