diff --git a/vomp_console.c b/vomp_console.c index 950c2eb8..50b9f406 100644 --- a/vomp_console.c +++ b/vomp_console.c @@ -189,7 +189,7 @@ static int remote_hangup(char *UNUSED(cmd), int UNUSED(argc), char **argv, unsig printf("Call ended\n"); fflush(stdout); struct call *p=*call; - call = &p->_next; + *call = p->_next; free(p); }else{ call = &(*call)->_next;