as-hostname address review comments
This commit is contained in:
@@ -862,9 +862,9 @@ static int host_name_action ( caHdrLargeArray *mp, void *pPayload,
|
||||
}
|
||||
|
||||
/* after all validation */
|
||||
if(asUseIP) {
|
||||
if(asCheckClientIP) {
|
||||
|
||||
DLOG (2, ( "CAS: host_name_action for \"%s\" ignores clist provided host name\n",
|
||||
DLOG (2, ( "CAS: host_name_action for \"%s\" ignores client provided host name\n",
|
||||
client->pHostName ) );
|
||||
return RSRV_OK;
|
||||
}
|
||||
|
||||
@@ -1421,7 +1421,7 @@ struct client *create_tcp_client (SOCKET sock , const osiSockAddr *peerAddr)
|
||||
}
|
||||
|
||||
client->addr = peerAddr->ia;
|
||||
if(asUseIP) {
|
||||
if(asCheckClientIP) {
|
||||
epicsUInt32 ip = ntohl(client->addr.sin_addr.s_addr);
|
||||
client->pHostName = malloc(24);
|
||||
if(!client->pHostName) {
|
||||
|
||||
Reference in New Issue
Block a user