Skip to content
Snippets Groups Projects
Commit cac0fa46 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

sipvoiplink: use proper function to print getnameinfo error

Change-Id: I2bf99068aa0322922e4af96535059daed2914e12
parent deb597fd
No related branches found
No related tags found
No related merge requests found
......@@ -545,7 +545,7 @@ SIPVoIPLink::SIPVoIPLink() : pool_(nullptr, pj_pool_release)
for (unsigned i=0, n=ns.size(); i<n; i++) {
char hbuf[NI_MAXHOST];
if (auto ret = getnameinfo((sockaddr*)&ns[i], ns[i].getLength(), hbuf, sizeof(hbuf), nullptr, 0, NI_NUMERICHOST)) {
JAMI_WARN("Error printing SIP nameserver: %s", strerror(ret));
JAMI_WARN("Error printing SIP nameserver: %s", gai_strerror(ret));
} else {
JAMI_DBG("Using SIP nameserver: %s", hbuf);
pj_strdup2(pool_.get(), &dns_nameservers[i], hbuf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment