[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3730-g740228a

Jeremy Allison jra at samba.org
Sat Aug 16 17:36:35 GMT 2008


The branch, v3-3-test has been updated
       via  740228aad72073bdbe1ebd96b9f44d914445816c (commit)
      from  c13874f5792f44d7530b1342f3a86b0d3bab9b2f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 740228aad72073bdbe1ebd96b9f44d914445816c
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