Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/heimdal/lib/krb5 Fix password return values.
details: https://anonhg.NetBSD.org/src/rev/6d68b142d19d
branches: trunk
changeset: 542361:6d68b142d19d
user: elric <elric%NetBSD.org@localhost>
date: Mon Jan 27 03:33:36 2003 +0000
description:
Fix password return values.
Addresses PR: lib/20074
diffstat:
crypto/dist/heimdal/lib/krb5/changepw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r e7c5f7b3dfb8 -r 6d68b142d19d crypto/dist/heimdal/lib/krb5/changepw.c
--- a/crypto/dist/heimdal/lib/krb5/changepw.c Mon Jan 27 02:43:30 2003 +0000
+++ b/crypto/dist/heimdal/lib/krb5/changepw.c Mon Jan 27 03:33:36 2003 +0000
@@ -34,7 +34,7 @@
#include <krb5_locl.h>
__RCSID("$Heimdal: changepw.c,v 1.37 2002/09/03 16:14:34 nectar Exp $"
- "$NetBSD: changepw.c,v 1.8 2002/09/20 22:05:59 mycroft Exp $");
+ "$NetBSD: changepw.c,v 1.9 2003/01/27 03:33:36 elric Exp $");
static krb5_error_code
send_request (krb5_context context,
@@ -176,7 +176,7 @@
ap_rep_data.length = (reply[4] << 8) | (reply[5]);
priv_data.data = (u_char*)ap_rep_data.data + ap_rep_data.length;
priv_data.length = len - ap_rep_data.length - 6;
- if ((u_char *)priv_data.data + priv_data.length >= reply + len)
+ if ((u_char *)priv_data.data + priv_data.length > reply + len)
return KRB5_KPASSWD_MALFORMED;
if (ap_rep_data.length) {
Home |
Main Index |
Thread Index |
Old Index