| Submitter | Andy Whitcroft |
|---|---|
| Date | Oct. 25, 2011, 4:12 p.m. |
| Message ID | <1319559148-30401-7-git-send-email-apw@canonical.com> |
| Download | mbox | patch |
| Permalink | /patch/121735/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 7a509b6..3cc37e0 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1608,7 +1608,8 @@ cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol) MAX_USERNAME_SIZE)) continue; if (strlen(vol->username) != 0 && - strncmp(ses->password, vol->password, + strncmp(ses->password, + vol->password ? vol->password : "", MAX_PASSWORD_SIZE)) continue; }