mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
If frame sender is NULL, assume you mean our primary SID
This commit is contained in:
parent
56cea7472a
commit
bc8ff888e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user