Fix problem with remotely accessing config page

This commit is contained in:
Ron Pedde 2006-05-31 09:50:27 +00:00
parent 7b19b6f533
commit c0e5416071

View File

@ -392,6 +392,9 @@ int config_auth(WS_CONNINFO *pwsc, char *user, char *password) {
if(!adminpassword) if(!adminpassword)
return FALSE; return FALSE;
if(!password)
return FALSE;
res = !strcmp(password,adminpassword); res = !strcmp(password,adminpassword);
free(adminpassword); free(adminpassword);
return res; return res;