handover: Call the right function and avoid recursion

Fix a brown paper bag bug and call the right method. The above was
an infinite recursion. The stack didn't overflow as the compiler
optimized the tail-recursion and coverity didn't complain either.

The issue was introduced in the last minutes before the merge
when I renamed "reset_handover" to "handover_reset" to follow
the object_verb approach throughout the handover.c code. While
doing that I sadly replaced reset_handover with handover_frame
and not handover_reset.
This commit is contained in:
Holger Hans Peter Freyther 2014-04-19 19:22:22 +02:00
parent d59bbd16a7
commit 3e5b6db2d2
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ void handover_frame(struct gsm_lchan *lchan)
{
LOGP(DHO, LOGL_INFO,
"%s First valid frame detected\n", gsm_lchan_name(lchan));
handover_frame(lchan);
handover_reset(lchan);
}
/* release handover state */