mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 07:53:23 -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
|
* Auth handler for the daap server
|
||||||
*/
|
*/
|
||||||
int daap_auth(char *username, char *password) {
|
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;
|
return 1;
|
||||||
|
|
||||||
if(password == NULL)
|
if(password == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user