mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 22:25:56 -05:00
Fix null password problem
This commit is contained in:
parent
58a3d45cef
commit
7179a157e6
@ -70,7 +70,8 @@ int daemon_start(int reap_children);
|
||||
* Auth handler for the daap server
|
||||
*/
|
||||
int daap_auth(char *username, char *password) {
|
||||
if((password == NULL) && (config.readpassword == NULL))
|
||||
if((password == NULL) &&
|
||||
((config.readpassword == NULL) || (strlen(config.readpassword)==0)))
|
||||
return 1;
|
||||
|
||||
if(password == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user