htsp server: fix missing tcp_connection_land() call, caused memory corruptions
This commit is contained in:
parent
f16fc58dd7
commit
5270b9ed0c
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
@ -2406,7 +2406,7 @@ readmsg:
|
|||
pthread_mutex_lock(&global_lock);
|
||||
tcp_connection_land(tcp_id);
|
||||
pthread_mutex_unlock(&global_lock);
|
||||
return 0;
|
||||
return tvheadend_running ? r : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue