mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 16:13:51 +00:00
Zero out frame buffer
This commit is contained in:
parent
dc686ad10b
commit
fba6c16eee
@ -114,6 +114,7 @@ static void parse_frame(struct overlay_buffer *buff){
|
|||||||
u_int8_t addr_len;
|
u_int8_t addr_len;
|
||||||
struct in_addr *addr;
|
struct in_addr *addr;
|
||||||
|
|
||||||
|
memset(&frame,0,sizeof(struct overlay_frame));
|
||||||
// parse the incoming olsr header
|
// parse the incoming olsr header
|
||||||
int magic = ob_get(buff);
|
int magic = ob_get(buff);
|
||||||
if ((PACKET_FORMAT_NUMBER & 0xFF) != magic){
|
if ((PACKET_FORMAT_NUMBER & 0xFF) != magic){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user