Message ID | 1319559148-30401-4-git-send-email-apw@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 2ea5948..bbf1c25 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1583,7 +1583,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; }