Opened 7 years ago

Closed 7 years ago

#2027 closed defect (fixed)

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 (2)

comment:1 Changed 7 years ago by nanang

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

comment:2 Changed 7 years ago by nanang

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