Ticket #2027 (closed defect: fixed)

Opened 5 weeks ago

Last modified 5 weeks ago

Assertion in pj_gethostip() when system hostname is empty

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.7
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Reported that when calling pj_gethostip() on a system whose empty hostname, pj_getaddrinfo() will raise assert at this line:

    PJ_ASSERT_RETURN(nodename->ptr && nodename->slen, PJ_EINVAL);

Thanks Denis Poltorak for the report.

Change History

comment:1 Changed 5 weeks ago by nanang

In r5627: Fixed assertion in pj_gethostip() when system hostname is empty.

comment:2 Changed 5 weeks ago by nanang

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.