[asterisk-commits] pabelanger: trunk r279285 - in /trunk: ./ include/asterisk/netsock2.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jul 24 13:20:27 CDT 2010
Author: pabelanger
Date: Sat Jul 24 13:20:18 2010
New Revision: 279285
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=279285
Log:
Merged revisions 279280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r279280 | pabelanger | 2010-07-24 14:18:43 -0400 (Sat, 24 Jul 2010) | 8 lines
Check if ast_sockaddr is NULL then return.
(closes issue #17677)
Reported by: outcast
Patches:
issue0017677.patch uploaded by pabelanger (license 224)
Tested by: elguero
........
Modified:
trunk/ (props changed)
trunk/include/asterisk/netsock2.h
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.8-merged (original)
+++ branch-1.8-merged Sat Jul 24 13:20:18 2010
@@ -1,1 +1,1 @@
-/branches/1.8:1-279056,279113,279227,279273
+/branches/1.8:1-279056,279113,279227,279273,279280
Modified: trunk/include/asterisk/netsock2.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/netsock2.h?view=diff&rev=279285&r1=279284&r2=279285
==============================================================================
--- trunk/include/asterisk/netsock2.h (original)
+++ trunk/include/asterisk/netsock2.h Sat Jul 24 13:20:18 2010
@@ -82,7 +82,7 @@
*/
static inline int ast_sockaddr_isnull(const struct ast_sockaddr *addr)
{
- return addr->len == 0;
+ return !addr || addr->len == 0;
}
/*!
More information about the asterisk-commits
mailing list