summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 69edfd3..d11eeb2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -18,8 +18,9 @@ int _sock_connect(void *data)
int fd = (uintptr_t)data;
OSMInitFrame frame = {0};
- memcpy(frame.magic, OSM_MAGIC_INIT, 4);
- frame.keylen = 0;
+ memcpy(frame.header.magic, OSM_MAGIC_INIT, 4);
+ frame.header.keylen = 0;
+ frame.header.keytype = OSM_KEYTYPE_NONE;
write(fd, &frame, sizeof(frame));
printf("Wrote 1!\n");