Fix offset

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13827 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Andrew Thompson 2009-06-18 04:19:42 +00:00
parent f17991b722
commit 94daf904b3
1 changed files with 1 additions and 1 deletions

View 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 {