diff options
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 793262f0af..d33940aa64 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3790,6 +3790,10 @@ int reply_mkdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size, RESOLVE_DFSPATH(directory, conn, inbuf, outbuf); unix_convert(directory,conn,0,&bad_path,&sbuf); + if (bad_path) { + END_PROFILE(SMBmkdir); + return ERROR_NT(NT_STATUS_OBJECT_PATH_NOT_FOUND); + } status = create_directory(conn, directory); |