projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
977796f
)
udp: Initialize pointer to NULL
author
Benjamin Gaignard
<benjamin@gaignard.net>
Wed, 8 Jul 2009 13:17:41 +0000
(15:17 +0200)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Wed, 8 Jul 2009 13:19:03 +0000
(15:19 +0200)
Otherwise we're calling free() with some random
memory address in error cases.
Fixes bug #587982.
gst/udp/gstudpnetutils.c
patch
|
blob
|
history
diff --git
a/gst/udp/gstudpnetutils.c
b/gst/udp/gstudpnetutils.c
index
c426020
..
4b25b42
100644
(file)
--- a/
gst/udp/gstudpnetutils.c
+++ b/
gst/udp/gstudpnetutils.c
@@
-79,7
+79,7
@@
gst_udp_get_sockaddr_length (struct sockaddr_storage *addr)
int
gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr)
{
- struct addrinfo hints, *res, *nres;
+ struct addrinfo hints, *res
= NULL
, *nres;
char service[NI_MAXSERV];
int ret;