Package: nacl / 20110221-12

0009-return-correct-client-extension.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?b?SmFuIE1vasW+w63FoQ==?= <jan.mojzis@gmail.com>
Date: Thu, 30 Dec 2021 07:57:34 +0100
Subject: return correct client extension

Forwarded: no
---
 curvecp/curvecpserver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/curvecp/curvecpserver.c b/curvecp/curvecpserver.c
index 3e98ae2..ceef663 100644
--- a/curvecp/curvecpserver.c
+++ b/curvecp/curvecpserver.c
@@ -474,7 +474,7 @@ int main(int argc,char **argv)
 	    byte_copy(text + 32,r,activeclients[i].message + 1);
 	    crypto_box_afternm(text,text,r + 32,nonce,activeclients[i].clientshortservershort);
 	    byte_copy(packet,8,"RL3aNMXM");
-	    byte_copy(packet + 8,16,clientextension);
+	    byte_copy(packet + 8,16,activeclients[i].clientextension);
 	    byte_copy(packet + 24,16,serverextension);
 	    byte_copy(packet + 40,8,nonce + 16);
 	    byte_copy(packet + 48,r + 16,text + 16);