diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2006-02-25 00:58:50 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2006-02-25 00:58:50 +0000 |
commit | ebec01137a6b200ee9432faecde5817670b41684 (patch) | |
tree | e3f1b210807f59a5ef8599968f0bb12f3fa30bff | |
parent | f82da0960018bfa4237d3d8239cf84d880673e6a (diff) |
Bug #6026 <https://bugs.freedesktop.org/show_bug.cgi?id=6026> Segfault in
netaddr.c:ConvertAddr if ifa_addr is NULL (Loser Mcloser
<reebydobalina@yahoo.ca>)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | netaddr.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2006-02-24 Alan Coopersmith <alan.coopersmith@sun.com> + + * netaddr.c: + Bug #6026 <https://bugs.freedesktop.org/show_bug.cgi?id=6026> + Segfault in netaddr.c:ConvertAddr if ifa_addr is NULL + (Loser Mcloser <reebydobalina@yahoo.ca>) + 2006-02-24 Jeremy C. Reed <reed@reedmedia.net> reviewed by: Alan.Coopersmith@Sun.COM @@ -155,7 +155,7 @@ int ConvertAddr (XdmcpNetaddr saddr, int *len, char **addr) { int retval; - if (len == NULL) + if ((len == NULL) || (saddr == NULL)) return -1; *addr = NetaddrAddress(saddr, len); #ifdef STREAMSCONN |