Fix an RTP instance allocation failure on Solaris.
authorJason Parker <jparker@digium.com>
Mon, 18 Jan 2010 22:03:49 +0000 (22:03 +0000)
committerJason Parker <jparker@digium.com>
Mon, 18 Jan 2010 22:03:49 +0000 (22:03 +0000)
(closes issue #16543)
Reported by: crjw
Patches:
      rtp_sin_family.patch uploaded by crjw (license 963)
Tested by: crjw, qwell

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@241098 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp_engine.c

index 8db95ea..8085e9d 100644 (file)
@@ -323,6 +323,7 @@ struct ast_rtp_instance *ast_rtp_instance_new(const char *engine_name, struct sc
        instance->local_address.sin_family = AF_INET;
        instance->local_address.sin_addr = sin->sin_addr;
        instance->remote_address.sin_family = AF_INET;
+       address.sin_family = AF_INET;
        address.sin_addr = sin->sin_addr;
 
        ast_debug(1, "Using engine '%s' for RTP instance '%p'\n", engine->name, instance);