From cb9dc23600006f2650e60d0c601d8dc5ef68fdfa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 16 Aug 2008 11:17:09 +0200 Subject: Attempt to fix Coverity ID 595 is_ipaddress already dereferences "name", so the NULL check is pointless after calling it. (This used to be commit 31ca7b2dbbbfbb3a55670b58c08ebda68888af7e) --- source3/libcli/nbt/nbtname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libcli/nbt/nbtname.c b/source3/libcli/nbt/nbtname.c index 2025ef70e7..fbb9550655 100644 --- a/source3/libcli/nbt/nbtname.c +++ b/source3/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; } -- cgit