r19505: fixed a valgrind error
authorAndrew Tridgell <tridge@samba.org>
Sat, 28 Oct 2006 09:40:00 +0000 (09:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:24:40 +0000 (14:24 -0500)
(This used to be commit 8b9359aa7d7b60e0d5e36a2c736278f39dcb07bf)

source4/smb_server/smb/trans2.c

index 1430ae8c1486ec46851aba2acb0eaa55f272d3fa..1f34dfa4b40ccf671faf8265b67b24442fbbee3c 100644 (file)
@@ -595,6 +595,10 @@ static NTSTATUS trans2_parse_sfileinfo(struct smbsrv_request *req,
        case RAW_SFILEINFO_1039:
        case RAW_SFILEINFO_1040:
                return NT_STATUS_INVALID_LEVEL;
+
+       default:
+               /* we need a default here to cope with invalid values on the wire */
+               return NT_STATUS_INVALID_LEVEL;
        }
 
        return smbsrv_pull_passthru_sfileinfo(st, passthru_level, st,