diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2002-12-07 18:17:00 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2002-12-07 18:17:00 +0000 |
commit | 6c9ab854ce6f8d226f119a8a67166644163f00b4 (patch) | |
tree | 05c8461b95e31d2e2e2a4654e31c17166cb3f994 | |
parent | 0b6c6f7bec4fa27e3df2e9e6ef41361aaca32bc8 (diff) |
Convert the hash of a string key to network byte order. Makes regression
work on all platforms.
Bug found by dhartmei@
ok dhartmei@ henning@
-rw-r--r-- | sbin/pfctl/parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 516f2c4554e..49e8d283a56 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.238 2002/12/06 12:36:02 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.239 2002/12/07 18:16:59 mcbride Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -1811,6 +1811,10 @@ hashkey : /* empty */ MD5Init(&context); MD5Update(&context, $1, strlen($1)); MD5Final((unsigned char *)$$, &context); + HTONL($$->key32[0]); + HTONL($$->key32[1]); + HTONL($$->key32[2]); + HTONL($$->key32[3]); } } ; |