diff options
| author | 2015-05-05 01:26:37 +0000 | |
|---|---|---|
| committer | 2015-05-05 01:26:37 +0000 | |
| commit | 0511e932f46daa3404242f8355655607d689cce7 (patch) | |
| tree | d06d28828168d0892ae2a393e0b2bf309cc6004b /usr.sbin/ospfd/auth.c | |
| parent | fix numbers for pppx, vscsi and diskmap (diff) | |
| download | wireguard-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.c | 4 |
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 */ |
