]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix some stuff involving calls to memcpy and memset
authorJonathan Rose <jrose@digium.com>
Wed, 4 Apr 2012 20:00:23 +0000 (20:00 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 4 Apr 2012 20:00:23 +0000 (20:00 +0000)
The important parts of the patch were already applied through other updates.

(closes issue ASTERISK-19445)
Reported by: Makoto Dei
Patches:
memset-memcpy-length.patch uploaded by Makoto Dei (license 5027)
........

Merged revisions 361210 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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

addons/ooh323cDriver.c

index 3171b8a73067d0fc6fbf288ac048e74fab009f8e..150024f81fb03c15b6fa275c1176f24a6e6e5479 100644 (file)
@@ -152,7 +152,6 @@ int ooh323c_start_call_thread(ooCallData *call) {
        }
 
        ast_module_ref(myself);
-       memset(cur, 0, sizeof(cur));
        if ((socketpair(PF_LOCAL, SOCK_STREAM, 0, cur->thePipe)) == -1) {
                ast_log(LOG_ERROR, "Can't create thread pipe for call %s\n", call->callToken);
                free(cur);