Navigation


Changeset 711:f7c665948e0c in freeDiameter


Ignore:
Timestamp:
Feb 10, 2011, 5:19:52 PM (10 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Use size returned by accept

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/cnxctx.c

    r710 r711  
    247247                int  rc;
    248248               
    249                 rc = getnameinfo((sSA *)&ss, sSAlen(&ss), addrbuf, sizeof(addrbuf), portbuf, sizeof(portbuf), NI_NUMERICHOST | NI_NUMERICSERV);
     249                rc = getnameinfo((sSA *)&ss, ss_len, addrbuf, sizeof(addrbuf), portbuf, sizeof(portbuf), NI_NUMERICHOST | NI_NUMERICSERV);
    250250                if (rc) {
    251251                        snprintf(addrbuf, sizeof(addrbuf), "[err:%s]", gai_strerror(rc));
     
    259259               
    260260                /* ...Name for log messages */
    261                 rc = getnameinfo((sSA *)&ss, sSAlen(&ss), cli->cc_remid, sizeof(cli->cc_remid), NULL, 0, 0);
     261                rc = getnameinfo((sSA *)&ss, ss_len, cli->cc_remid, sizeof(cli->cc_remid), NULL, 0, 0);
    262262                if (rc)
    263263                        snprintf(cli->cc_remid, sizeof(cli->cc_remid), "[err:%s]", gai_strerror(rc));
Note: See TracChangeset for help on using the changeset viewer.