as-hostname address review comments

This commit is contained in:
Michael Davidsaver
2019-05-08 19:02:13 -07:00
parent dced29c475
commit 73cdea5517
7 changed files with 35 additions and 13 deletions
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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) {