Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
ef3a113a
Commit
ef3a113a
authored
Jan 07, 2020
by
Antonin Décimo
Committed by
Juliusz Chroboczek
May 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't copy nonce, suppress VLA.
parent
c2437694
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
message.c
message.c
+2
-4
message.h
message.h
+2
-1
No files found.
message.c
View file @
ef3a113a
...
...
@@ -502,11 +502,9 @@ preparse_packet(const unsigned char *packet, int bodylen,
debugf
(
"Challenge failed.
\n
"
);
}
}
else
if
(
type
==
MESSAGE_CHALLENGE_REQUEST
)
{
unsigned
char
nonce
[
len
];
debugf
(
"Received challenge request from %s.
\n
"
,
format_address
(
neigh
->
address
));
memcpy
(
nonce
,
message
+
2
,
len
);
send_challenge_reply
(
neigh
,
nonce
,
len
);
send_challenge_reply
(
neigh
,
message
+
2
,
len
);
}
i
+=
len
+
2
;
}
...
...
@@ -1230,7 +1228,7 @@ send_challenge_req(struct neighbour *neigh)
}
void
send_challenge_reply
(
struct
neighbour
*
neigh
,
unsigned
char
*
crypto_nonce
,
send_challenge_reply
(
struct
neighbour
*
neigh
,
const
unsigned
char
*
crypto_nonce
,
int
len
)
{
debugf
(
"Sending challenge reply to %s on %s.
\n
"
,
...
...
message.h
View file @
ef3a113a
...
...
@@ -64,7 +64,8 @@ int send_crypto_seqno(struct buffered *buf, struct interface *ifp);
void
send_ack
(
struct
neighbour
*
neigh
,
unsigned
short
nonce
,
unsigned
short
interval
);
int
send_challenge_req
(
struct
neighbour
*
neigh
);
void
send_challenge_reply
(
struct
neighbour
*
neigh
,
unsigned
char
*
crypto_nonce
,
int
len
);
void
send_challenge_reply
(
struct
neighbour
*
neigh
,
const
unsigned
char
*
crypto_nonce
,
int
len
);
void
send_multicast_hello
(
struct
interface
*
ifp
,
unsigned
interval
,
int
force
);
void
send_unicast_hello
(
struct
neighbour
*
neigh
,
unsigned
interval
,
int
force
);
void
send_hello
(
struct
interface
*
ifp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment