Revision f872ab6f

View differences:

src/net_helper-udp.c
312 312
{
313 313
	char ip1[80], ip2[80];
314 314
	int port1,port2,res;
315

  
315 316
	port1=node_port(s1);
316 317
	port2=node_port(s2);
317 318
	node_ip(s1,ip1,80);
......
376 377
	  perror("inet_ntop");
377 378
		res = -1;
378 379
  }
380
  if (ip && res <0 && len)
381
    ip[0] = '\0';
379 382
  return res;
380 383
}
381 384

  

Also available in: Unified diff