[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-2919-ga252ad9
Jeremy Allison
jra at samba.org
Sat Aug 16 17:36:33 GMT 2008
The branch, v3-2-test has been updated
via a252ad90136fbc338c0946a5fd5e5322b8d95a01 (commit)
from ecf96a26bfe18899133d68032b0cda00177d57d0 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit a252ad90136fbc338c0946a5fd5e5322b8d95a01
Author: Volker Lendecke <vl at sernet.de>
Date: Sat Aug 16 11:17:09 2008 +0200
Attempt to fix Coverity ID 595
is_ipaddress already dereferences "name", so the NULL check is pointless after
calling it.
-----------------------------------------------------------------------
Summary of changes:
source/libcli/nbt/nbtname.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libcli/nbt/nbtname.c b/source/libcli/nbt/nbtname.c
index 2025ef7..fbb9550 100644
--- a/source/libcli/nbt/nbtname.c
+++ b/source/libcli/nbt/nbtname.c
@@ -420,7 +420,7 @@ _PUBLIC_ void nbt_choose_called_name(TALLOC_CTX *mem_ctx,
n->scope = NULL;
n->type = type;
- if (is_ipaddress(name) || name == NULL) {
+ if ((name == NULL) || is_ipaddress(name)) {
n->name = "*SMBSERVER";
return;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list