From 6fbbef77e62336a0fd6c2e0ca5259a75629cd55f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 28 Oct 2006 09:40:00 +0000 Subject: [PATCH] r19505: fixed a valgrind error (This used to be commit 8b9359aa7d7b60e0d5e36a2c736278f39dcb07bf) --- source4/smb_server/smb/trans2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/smb_server/smb/trans2.c b/source4/smb_server/smb/trans2.c index 1430ae8c148..1f34dfa4b40 100644 --- a/source4/smb_server/smb/trans2.c +++ b/source4/smb_server/smb/trans2.c @@ -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, -- 2.34.1