summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ot_livesync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ot_livesync.c b/ot_livesync.c
index 45d4160..bca7e12 100644
--- a/ot_livesync.c
+++ b/ot_livesync.c
@@ -375,8 +375,10 @@ static void * livesync_worker( void * args ) {
375 375
376 (void)args; 376 (void)args;
377 377
378 memcpy( in_ip, V4mappedprefix, sizeof( V4mappedprefix ) );
379
378 while( 1 ) { 380 while( 1 ) {
379 datalen = socket_recv4(g_socket_in, (char*)g_inbuffer, LIVESYNC_INCOMING_BUFFSIZE, (char*)in_ip, &in_port); 381 datalen = socket_recv4(g_socket_in, (char*)g_inbuffer, LIVESYNC_INCOMING_BUFFSIZE, 12+(char*)in_ip, &in_port);
380 382
381 /* Expect at least tracker id and packet type */ 383 /* Expect at least tracker id and packet type */
382 if( datalen <= (ssize_t)(sizeof( g_tracker_id ) + sizeof( uint32_t )) ) 384 if( datalen <= (ssize_t)(sizeof( g_tracker_id ) + sizeof( uint32_t )) )