diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-03-07 00:34:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-03-07 00:34:28 +0000 |
commit | 492b64a47f910ec9fc0016f21d97033e7af34818 (patch) | |
tree | cd97c45bb3c8803b507d5149995b459c2f7dcce2 | |
parent | b9b94885d2ce54fc324ff8f01e4014c027742d97 (diff) |
n_net is host byte order; pattonme@gnpr.pae.osd.mil
-rw-r--r-- | sbin/ipnat/ipnat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipnat/ipnat.c b/sbin/ipnat/ipnat.c index 4647c533a47..aa9d71d8b3d 100644 --- a/sbin/ipnat/ipnat.c +++ b/sbin/ipnat/ipnat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipnat.c,v 1.20 1998/02/24 04:03:38 dgregor Exp $ */ +/* $OpenBSD: ipnat.c,v 1.21 1998/03/07 00:34:27 deraadt Exp $ */ /* * Copyright (C) 1993-1997 by Darren Reed. * @@ -55,7 +55,7 @@ #if !defined(lint) static const char sccsid[] ="@(#)ipnat.c 1.9 6/5/96 (C) 1993 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ipnat.c,v 1.20 1998/02/24 04:03:38 dgregor Exp $"; +static const char rcsid[] = "@(#)$Id: ipnat.c,v 1.21 1998/03/07 00:34:27 deraadt Exp $"; #endif @@ -520,7 +520,7 @@ int *resolved; fprintf(stderr, "can't resolve hostname: %s\n", host); return 0; } - return np->n_net; + return htonl(np->n_net); } return *(u_32_t *)hp->h_addr; } |