r23764: Do restore_case_semantics in an error path. Jeremy, please check!
authorVolker Lendecke <vlendec@samba.org>
Mon, 9 Jul 2007 13:04:44 +0000 (13:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:54 +0000 (12:23 -0500)
source/smbd/nttrans.c

index f4508d07f16e578ea888ac4d5ccb31072085dc13..17d71117ed8573a3fbb9476cd822e70395d36b5d 100644 (file)
@@ -731,6 +731,7 @@ int reply_ntcreate_and_X(connection_struct *conn,
 
                /* Can't open a temp directory. IFS kit test. */
                if (file_attributes & FILE_ATTRIBUTE_TEMPORARY) {
+                       restore_case_semantics(conn, file_attributes);
                        END_PROFILE(SMBntcreateX);
                        return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
                }