summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-28 05:41:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:57 -0500
commit00ffc8ec93600bd20e380c1242a946749acf0843 (patch)
tree5cd16099a9c5558c7ae3cd9a60f3fc9ec78b1d5b
parent2eff779b1706d32dc4996197d18b7eb6576230df (diff)
downloadsamba-00ffc8ec93600bd20e380c1242a946749acf0843.tar.gz
samba-00ffc8ec93600bd20e380c1242a946749acf0843.tar.bz2
samba-00ffc8ec93600bd20e380c1242a946749acf0843.zip
r17879: Make it explicit that we can never pass NULL for buflen or stringlen.
Stanford Checker fix. Jeremy. (This used to be commit 2d8bdd2dce633253780a5b0378f229893d049666)
-rw-r--r--source3/smbd/lanman.c8
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;
}