mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Handle failure of ast_calloc when allocating interfaces in res_smdi (issue #7344 reported by casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -617,7 +617,8 @@ static int smdi_load(int reload)
|
||||
}
|
||||
}
|
||||
|
||||
iface = ast_calloc(1, sizeof(*iface));
|
||||
if (!(iface = ast_calloc(1, sizeof(*iface))))
|
||||
continue;
|
||||
|
||||
ASTOBJ_INIT(iface);
|
||||
ASTOBJ_CONTAINER_INIT(&iface->md_q);
|
||||
|
Reference in New Issue
Block a user