mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
make empty password same as unspecified password.
This commit is contained in:
parent
1c33ef17fa
commit
757e576537
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user