summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/auth.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2015-05-05 01:26:37 +0000
committerjsg <jsg@openbsd.org>2015-05-05 01:26:37 +0000
commit0511e932f46daa3404242f8355655607d689cce7 (patch)
treed06d28828168d0892ae2a393e0b2bf309cc6004b /usr.sbin/ospfd/auth.c
parentfix numbers for pppx, vscsi and diskmap (diff)
downloadwireguard-openbsd-0511e932f46daa3404242f8355655607d689cce7.tar.xz
wireguard-openbsd-0511e932f46daa3404242f8355655607d689cce7.zip
use the sizeof the struct not the sizeof a pointer to the struct
ok claudio@
Diffstat (limited to 'usr.sbin/ospfd/auth.c')
-rw-r--r--usr.sbin/ospfd/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/auth.c b/usr.sbin/ospfd/auth.c
index 63d6bb0b705..a50c3f0b9e4 100644
--- a/usr.sbin/ospfd/auth.c
+++ b/usr.sbin/ospfd/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.19 2010/09/02 14:03:21 sobrado Exp $ */
+/* $OpenBSD: auth.c,v 1.20 2015/05/05 01:26:37 jsg Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -144,7 +144,7 @@ auth_gen(struct ibuf *buf, struct iface *iface)
struct ospf_hdr *ospf_hdr;
struct auth_md *md;
- if ((ospf_hdr = ibuf_seek(buf, 0, sizeof(ospf_hdr))) == NULL)
+ if ((ospf_hdr = ibuf_seek(buf, 0, sizeof(*ospf_hdr))) == NULL)
fatalx("auth_gen: buf_seek failed");
/* update length */