Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp server: fix missing tcp_connection_land() call, caused memory co…
…rruptions
  • Loading branch information
perexg committed Oct 7, 2014
1 parent f16fc58 commit 5270b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/htsp_server.c
Expand Up @@ -2346,7 +2346,7 @@ htsp_read_loop(htsp_connection_t *htsp)
while(tvheadend_running) {
readmsg:
if((r = htsp_read_message(htsp, &m, 0)) != 0)
return r;
break;

pthread_mutex_lock(&global_lock);
if (htsp_authenticate(htsp, m)) {
Expand Down Expand Up @@ -2406,7 +2406,7 @@ htsp_read_loop(htsp_connection_t *htsp)
pthread_mutex_lock(&global_lock);
tcp_connection_land(tcp_id);
pthread_mutex_unlock(&global_lock);
return 0;
return tvheadend_running ? r : 0;
}

/**
Expand Down

0 comments on commit 5270b9e

Please sign in to comment.