浏览代码

topoh: improve debug info for topoh crash

- print entire socket address for ease of debugging with empty mask ip

(cherry picked from commit c6a485b04c2ed14b77e8747ffcd822f0743d56dd)
souradeep.bera 9 月之前
父节点
当前提交
0259f3a6c8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/topoh/topoh_mod.c

+ 2 - 2
src/modules/topoh/topoh_mod.c

@@ -317,8 +317,8 @@ int th_build_socket_strings(socket_info_t *socket)
 	str *socket_ip = NULL;
 
 	if(socket->sockname.s == NULL || socket->sockname.len <= 0) {
-		LM_ERR("the socket [%.*s] has no name - it must be set\n",
-				socket->address_str.len, socket->address_str.s);
+		LM_ERR("the socket %s has no name - it must be set\n",
+				socket->sock_str.s);
 		return -1;
 	}