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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Paul Belanger
2010-07-24 18:18:43 +00:00
parent 16921385e3
commit e0557f853e

View File

@@ -82,7 +82,7 @@ int ast_sockaddr_ipv4_mapped(const struct ast_sockaddr *addr, struct ast_sockadd
*/
static inline int ast_sockaddr_isnull(const struct ast_sockaddr *addr)
{
return addr->len == 0;
return !addr || addr->len == 0;
}
/*!