diff options
Diffstat (limited to 'usr.sbin/dvmrpd/prune.c')
-rw-r--r-- | usr.sbin/dvmrpd/prune.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/prune.c b/usr.sbin/dvmrpd/prune.c index 54812752861..c99f01d76db 100644 --- a/usr.sbin/dvmrpd/prune.c +++ b/usr.sbin/dvmrpd/prune.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prune.c,v 1.4 2014/10/25 03:23:49 lteo Exp $ */ +/* $OpenBSD: prune.c,v 1.5 2015/05/05 01:26:37 jsg Exp $ */ /* * Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org> @@ -70,7 +70,7 @@ send_prune(struct nbr *nbr, struct prune *p) ibuf_add(buf, &prune, sizeof(prune)); /* update chksum */ - dvmrp_hdr = ibuf_seek(buf, 0, sizeof(dvmrp_hdr)); + dvmrp_hdr = ibuf_seek(buf, 0, sizeof(*dvmrp_hdr)); dvmrp_hdr->chksum = in_cksum(buf->buf, buf->wpos); ret = send_packet(nbr->iface, buf->buf, buf->wpos, &dst); |