From ae00397f4c17f72e08b07210cfcec2fb964a352d Mon Sep 17 00:00:00 2001 From: z3bra Date: Thu, 24 Nov 2016 23:15:20 +0100 Subject: Fix tests against friend call state --- ratox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index daa6c8f..7eae5cf 100644 --- a/ratox.c +++ b/ratox.c @@ -482,7 +482,7 @@ sendfriendcalldata(struct friend *f) if (n == 0) { f->av.state &= ~OUTGOING; return; - } else if (n < 0 || state & RINGING) { + } else if (n < 0 || f->av.state & RINGING) { /* discard data as long as the call is not established */ return; } else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE ? f->av.n : 0))) { -- cgit v1.2.3