make empty password same as unspecified password.

This commit is contained in:
Ron Pedde 2006-05-02 06:12:38 +00:00
parent 1c33ef17fa
commit 757e576537

View File

@ -133,7 +133,7 @@ int daap_auth(WS_CONNINFO *pwsc, char *username, char *password) {
readpassword = conf_alloc_string("general","password",NULL); readpassword = conf_alloc_string("general","password",NULL);
if(password == NULL) { if(password == NULL) {
if(readpassword == NULL) { if((readpassword == NULL)||(strlen(readpassword) == 0)) {
return TRUE; return TRUE;
} else { } else {
free(readpassword); free(readpassword);