1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

r17879: Make it explicit that we can never pass NULL for buflen or stringlen.

Stanford Checker fix.
Jeremy.
This commit is contained in:
Jeremy Allison 2006-08-28 05:41:32 +00:00 committed by Gerald (Jerry) Carter
parent ae20201494
commit 2d8bdd2dce

View File

@ -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;
}