pkgsrc/net/ra-rtsp-proxy/patches/patch-ab
tron 866aee89b8 Fix "Error: Destination host and port is proxy host and port." problem
which was caused by insufficient code to duplicate a "struct hostent".
Bump version number to 1.0.0.0nb1.
2001-02-04 17:46:07 +00:00

12 lines
449 B
Text

$NetBSD: patch-ab,v 1.1 2001/02/04 17:46:08 tron Exp $
--- main.c.orig Thu Jun 17 03:19:01 1999
+++ main.c Sun Feb 4 18:38:53 2001
@@ -605,6 +605,7 @@
/* make a copy of the hostent structure */
host2 = g_malloc (sizeof (struct hostent));
memcpy (host2, host, sizeof (struct hostent));
+ strcpy (host2->h_name = g_malloc (strlen(host->h_name) + 1), host->h_name);
log_message (DEBUG_LOG, "DNS LOOKUP %s -> 0x%08lx", hostname, ip);