summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 21:34:44 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 22:07:24 +0100
commitfb47b7fd67567fd84865e82bca91c1c32f36771f (patch)
tree285b8a143fb4dee876fce37b423daa28d8a16f44 /source3/smbd
parentdd3d6a160c54edbfbca708c2b17a61c7e39b3801 (diff)
downloadsamba-fb47b7fd67567fd84865e82bca91c1c32f36771f.tar.gz
samba-fb47b7fd67567fd84865e82bca91c1c32f36771f.tar.bz2
samba-fb47b7fd67567fd84865e82bca91c1c32f36771f.zip
s3: Fix Coverity ID 2140, DEADCODE
This routine was never executed after f0dcc90f because "netname" was always NULL. Jeremy, please check!
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 02ef033879..75ec100d79 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -2005,7 +2005,7 @@ static bool api_RNetShareGetInfo(struct smbd_server_connection *sconn,
int uLevel = get_safe_SVAL(param,tpscnt,p,0,-1);
int snum;
- if (!str1 || !str2 || !netname || !p) {
+ if (!str1 || !str2 || !netname_in || !p) {
return False;
}