Fix null password problem

This commit is contained in:
Ron Pedde 2004-01-27 05:30:25 +00:00
parent 58a3d45cef
commit 7179a157e6

View File

@ -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)