From bc8ff888e9374162b6fe73c8d3ec2b7050d8a94d Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Thu, 15 Aug 2013 15:49:24 +0930 Subject: [PATCH] If frame sender is NULL, assume you mean our primary SID --- overlay_mdp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overlay_mdp.c b/overlay_mdp.c index 1711b0d5..11c12535 100644 --- a/overlay_mdp.c +++ b/overlay_mdp.c @@ -629,6 +629,10 @@ static struct overlay_buffer * encrypt_payload( // encrypt or sign the plaintext, then queue the frame for transmission. int overlay_send_frame(struct overlay_frame *frame, struct overlay_buffer *plaintext){ + + if (!frame->source) + frame->source = my_subscriber; + /* Work out the disposition of the frame-> For now we are only worried about the crypto matters, and not compression that may be applied before encryption (since applying it after is useless as ciphered