We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e7487 commit 1fbfcbaCopy full SHA for 1fbfcba
libcurvecpr/lib/client.c
@@ -9,6 +9,8 @@
9
10
#include <sodium/crypto_box.h>
11
12
+#include <errno.h>
13
+
14
static const unsigned char _zeros[128] = { 0 };
15
16
void curvecpr_client_new (struct curvecpr_client *client, const struct curvecpr_client_cf *cf)
@@ -70,7 +72,8 @@ int curvecpr_client_connected (struct curvecpr_client *client)
70
72
curvecpr_bytes_copy(p.box, data + 16, 80);
71
73
}
74
- cf->ops.send(client, (const unsigned char *)&p, sizeof(struct curvecpr_packet_hello));
75
+ if (cf->ops.send(client, (const unsigned char *)&p, sizeof(struct curvecpr_packet_hello)))
76
+ return -EAGAIN;
77
78
return 0;
79
0 commit comments