]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd - SMB[2|3]. Ensure a \ or / can't be found anywhere in a search path, not...
authorJeremy Allison <jra@samba.org>
Tue, 10 Jun 2014 21:41:45 +0000 (14:41 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Sep 2014 18:39:19 +0000 (20:39 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_find.c

index c39a35d526cd1aaf1929733bde9628a0087d10db..374af93741d93739399d1eaaa57ed220f80d6750 100644 (file)
@@ -252,11 +252,11 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
                tevent_req_nterror(req, NT_STATUS_OBJECT_NAME_INVALID);
                return tevent_req_post(req, ev);
        }
-       if (strcmp(in_file_name, "\\") == 0) {
+       if (strchr_m(in_file_name, '\\') != NULL) {
                tevent_req_nterror(req, NT_STATUS_OBJECT_NAME_INVALID);
                return tevent_req_post(req, ev);
        }
-       if (strcmp(in_file_name, "/") == 0) {
+       if (strchr_m(in_file_name, '/') != NULL) {
                tevent_req_nterror(req, NT_STATUS_OBJECT_NAME_INVALID);
                return tevent_req_post(req, ev);
        }