diff options
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index d26ab654fa..565046061c 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -149,10 +149,10 @@ NTSTATUS check_path_syntax(pstring destname, const pstring srcname, BOOL allow_w return NT_STATUS_INVALID_PARAMETER; } } - start_of_name_component = False; - if (num_bad_components) { + if (start_of_name_component && num_bad_components) { num_bad_components++; } + start_of_name_component = False; } if (NT_STATUS_EQUAL(ret, NT_STATUS_OBJECT_NAME_INVALID)) { |