as,rsrv: use real client IP instead of untrusted host name

This commit is contained in:
Michael Davidsaver
2018-06-16 09:45:00 -07:00
parent 383b6b1c36
commit 530eba133f
6 changed files with 61 additions and 6 deletions

View File

@@ -861,6 +861,14 @@ static int host_name_action ( caHdrLargeArray *mp, void *pPayload,
return RSRV_ERROR;
}
/* after all validation */
if(asUseIP) {
DLOG (2, ( "CAS: host_name_action for \"%s\" ignores clist provided host name\n",
client->pHostName ) );
return RSRV_OK;
}
/*
* user name will not change if there isnt enough memory
*/