Browse code

bug_fix(372): printing of incorrect IP address in warnings

Jiri Kuthan authored on 29/09/2002 10:13:36
Showing 1 changed files
... ...
@@ -129,12 +129,12 @@ char * warning_builder( struct sip_msg *msg, unsigned int *returned_len)
129 129
 	{
130 130
 		memcpy(buf+fix_len,"Warning: 392 ",13);
131 131
 		fix_len +=13;
132
-		memcpy(buf+fix_len, sock_info[0].name.s,sock_info[0].name.len);
133
-		fix_len += sock_info[0].name.len;
132
+		memcpy(buf+fix_len, bind_address->name.s,bind_address->name.len);
133
+		fix_len += bind_address->name.len;
134 134
 		//*(buf+fix_len++) = ':';
135
-		memcpy(buf+fix_len,sock_info[0].port_no_str.s,
136
-			sock_info[0].port_no_str.len);
137
-		fix_len += sock_info[0].port_no_str.len;
135
+		memcpy(buf+fix_len,bind_address->port_no_str.s,
136
+			bind_address->port_no_str.len);
137
+		fix_len += bind_address->port_no_str.len;
138 138
 		memcpy(buf+fix_len, " \"Noisy feedback tells: ",24);
139 139
 		fix_len += 24;
140 140
 	}