mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
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:
@@ -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)
|
static inline int ast_sockaddr_isnull(const struct ast_sockaddr *addr)
|
||||||
{
|
{
|
||||||
return addr->len == 0;
|
return !addr || addr->len == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in New Issue
Block a user