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:
parent
ae20201494
commit
2d8bdd2dce
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user