aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/microphone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/microphone.c')
-rw-r--r--src/conversation/microphone.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conversation/microphone.c b/src/conversation/microphone.c
index 53ac5cb86..f42f571c8 100644
--- a/src/conversation/microphone.c
+++ b/src/conversation/microphone.c
@@ -75,14 +75,13 @@ process_record_messages (void *cls,
75{ 75{
76 struct Microphone *mic = cls; 76 struct Microphone *mic = cls;
77 77
78 if ( (ntohs (msg->size) != sizeof (struct AudioMessage)) || 78 if (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO)
79 (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO) )
80 { 79 {
81 GNUNET_break (0); 80 GNUNET_break (0);
82 return GNUNET_SYSERR; 81 return GNUNET_SYSERR;
83 } 82 }
84 mic->rdc (mic->rdc_cls, 83 mic->rdc (mic->rdc_cls,
85 sizeof (struct AudioMessage), 84 ntohs (msg->size),
86 (const char *) msg); 85 (const char *) msg);
87 return GNUNET_OK; 86 return GNUNET_OK;
88} 87}