Преглед изворни кода

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;
 	}