]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix offset
authorAndrew Thompson <andrew@hijacked.us>
Thu, 18 Jun 2009 04:19:42 +0000 (04:19 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Thu, 18 Jun 2009 04:19:42 +0000 (04:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13827 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c

index c60227ef6163ac706b2eedff4f47599cdd9531d1..7057bf7eb1af3e3933ad84568d41f90ff2c57e2e 100644 (file)
@@ -223,7 +223,7 @@ static void event_handler(switch_event_t *event)
                                        EVP_EncryptInit(&ctx, NULL, (unsigned char*) globals.psk, (unsigned char*) uuid_str);
                                        EVP_EncryptUpdate(&ctx, (unsigned char*) buf + sizeof(globals.host_hash) + SWITCH_UUID_FORMATTED_LENGTH,
                                                        &outlen, (unsigned char*) packet, (int) strlen(packet));
-                                       EVP_EncryptFinal(&ctx, (unsigned char*) buf + outlen, &tmplen);
+                                       EVP_EncryptFinal(&ctx, (unsigned char*) buf + sizeof(globals.host_hash) + SWITCH_UUID_FORMATTED_LENGTH + outlen, &tmplen);
                                        outlen += tmplen;
                                        len = (size_t) outlen + sizeof(globals.host_hash) + SWITCH_UUID_FORMATTED_LENGTH;
                                } else {