aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/config.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-03-24 04:01:25 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-03-24 04:44:27 +0100
commit6d20c647d010e5075b277dc07d32f0c9b5cdae79 (patch)
tree8796e876033c210565ace1898669fbe3f0eb9563 /src/config.c
parentwg-quick: various cleanups (diff)
downloadwireguard-tools-6d20c647d010e5075b277dc07d32f0c9b5cdae79.tar.xz
wireguard-tools-6d20c647d010e5075b277dc07d32f0c9b5cdae79.zip
uapi: add version magic
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index b9a65c1..20bd22a 100644
--- a/src/config.c
+++ b/src/config.c
@@ -465,7 +465,7 @@ bool config_read_cmd(struct wgdevice **device, char *argv[], int argc)
{
struct inflatable_device buf = { 0 };
size_t peer_offset = 0;
- buf.dev = calloc(sizeof(struct wgdevice), 1);
+ buf.dev = calloc(1, sizeof(struct wgdevice));
if (!buf.dev) {
perror("calloc");
return false;