summaryrefslogtreecommitdiffstats
path: root/src/method_null.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-05 18:10:11 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-05 18:10:11 +0200
commit0f14f5562917c85cbe35eb8eeed6ab1e27922af3 (patch)
tree5c53a7fa1b583c8d44f250addb25284e0bb1e7cd /src/method_null.c
parent227af67a3cbf665f46c172dfd5147065c9ae95aa (diff)
downloadfastd-0f14f5562917c85cbe35eb8eeed6ab1e27922af3.tar
fastd-0f14f5562917c85cbe35eb8eeed6ab1e27922af3.zip
Fix possible duplicate session establishment
This is causing duplicate nonces in the worst case.
Diffstat (limited to 'src/method_null.c')
-rw-r--r--src/method_null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/method_null.c b/src/method_null.c
index e8b3fca..848f62d 100644
--- a/src/method_null.c
+++ b/src/method_null.c
@@ -35,7 +35,7 @@ static size_t method_min_head_space(fastd_context *ctx) {
return 0;
}
-static fastd_method_session_state* method_session_init(fastd_context *ctx, uint8_t *secret, size_t length, bool initiator) {
+static fastd_method_session_state* method_session_init(fastd_context *ctx, uint8_t *secret, size_t length, bool initiator, fastd_method_session_state *old_session) {
if (initiator)
return (fastd_method_session_state*)1;
else