summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
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))) {