Browse code

- removed uneccesary last char backup in received_test

Andrei Pelinescu-Onciul authored on 30/10/2003 22:54:13
Showing 1 changed files
... ...
@@ -218,15 +218,11 @@ static int check_via_address(struct ip_addr* ip, str *name,
218 218
 /* check if IP address in Via != source IP address of signaling */
219 219
 int received_test( struct sip_msg *msg )
220 220
 {
221
-	char backup;
222 221
 	int rcvd;
223 222
 
224
-	/* zero-terminate hostname temporarily in case DNS resolver is used */
225
-	backup = msg->via1->host.s[msg->via1->host.len];
226 223
 	rcvd=msg->via1->received
227 224
 			|| check_via_address(&msg->rcv.src_ip, &msg->via1->host,
228 225
 							msg->via1->port, received_dns);
229
-	msg->via1->host.s[msg->via1->host.len] = backup;
230 226
 	return rcvd;
231 227
 }
232 228