summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/lsupdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ospfd/lsupdate.c')
-rw-r--r--usr.sbin/ospfd/lsupdate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c
index b5503b6b2d2..3cbba9d5e86 100644
--- a/usr.sbin/ospfd/lsupdate.c
+++ b/usr.sbin/ospfd/lsupdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lsupdate.c,v 1.19 2005/10/21 08:29:25 claudio Exp $ */
+/* $OpenBSD: lsupdate.c,v 1.20 2005/10/21 11:53:27 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -177,7 +177,7 @@ send_ls_update(struct iface *iface, struct in_addr addr, void *data, int len)
age = ntohs(age);
if ((age += iface->transmit_delay) >= MAX_AGE)
age = MAX_AGE;
- age = ntohs(age);
+ age = htons(age);
memcpy(buf_seek(buf, pos, sizeof(age)), &age, sizeof(age));
/* update authentication and calculate checksum */