Commit 9d2c01b5 authored by Peter Kjellerstedt's avatar Peter Kjellerstedt Committed by Tim-Philipp Müller
Browse files

gst/rtsp/rtspconnection.c: inet_ntoa() uses a static buffer internally, so we...

gst/rtsp/rtspconnection.c: inet_ntoa() uses a static buffer internally, so we need to copy the returned string if we ...

Original commit message from CVS:
Patch by: Peter Kjellerstedt <pkj at axis com>
* gst/rtsp/rtspconnection.c: (rtsp_connection_connect),
(rtsp_connection_free):
inet_ntoa() uses a static buffer internally, so we need to copy the
returned string if we want to store it for later (#447961).
parent 6062b97a
2007-06-17 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Peter Kjellerstedt <pkj at axis com>
* gst/rtsp/rtspconnection.c: (rtsp_connection_connect),
(rtsp_connection_free):
inet_ntoa() uses a static buffer internally, so we need to copy the
returned string if we want to store it for later (#447961).
2007-06-15 Jan Schmidt <thaytan@mad.scientist.com>
* win32/vs6/autogen.dsp:
......
......@@ -264,7 +264,7 @@ rtsp_connection_connect (RTSPConnection * conn, GTimeVal * timeout)
done:
conn->fd = fd;
conn->ip = ip;
conn->ip = g_strdup (ip);
return RTSP_OK;
......@@ -1030,6 +1030,7 @@ rtsp_connection_free (RTSPConnection * conn)
g_timer_destroy (conn->timer);
g_free (conn->username);
g_free (conn->passwd);
g_free (conn->ip);
g_free (conn);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment