diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 19:57:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 19:57:11 +0000 |
commit | fbcf5c896f8e56d6534307cb17aab883973aa4f5 (patch) | |
tree | 8e06912501a57f13959fee301b22bca6d2a89932 | |
parent | bfa3ea11a6c279ad48d039cffc7bd348c736682e (diff) |
MD5Final() takes unsigned char *
-rw-r--r-- | usr.sbin/pppoe/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pppoe/common.c b/usr.sbin/pppoe/common.c index 195e942cd42..bd710da9dea 100644 --- a/usr.sbin/pppoe/common.c +++ b/usr.sbin/pppoe/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.6 2002/02/16 21:28:07 millert Exp $ */ +/* $OpenBSD: common.c,v 1.7 2002/09/06 19:57:10 deraadt Exp $ */ /* * Copyright (c) 2000 Network Security Technologies, Inc. http://www.netsec.net @@ -279,7 +279,7 @@ cookie_bake() x = arc4random(); MD5Init(&ctx); MD5Update(&ctx, (unsigned char *)&x, sizeof(x)); - MD5Final(buf, &ctx); + MD5Final((unsigned char *)buf, &ctx); bcopy(buf, &y, sizeof(y)); x = x ^ y; bcopy(buf + 4, &y, sizeof(y)); |