From 978163e89439d1e89f80e3f13bf9526b5ff5c6c0 Mon Sep 17 00:00:00 2001 From: dmitry_yus Date: Fri, 23 Sep 2005 19:50:23 +0000 Subject: James Sneeringer: changing all instances of password_length_in to password_in_length. I thought this would be simpler than trying to change the macro. git-svn-id: svn://svn.berlios.de/open-iscsi@414 d7303112-9cec-0310-bdd2-e83a94d6c2b6 --- usr/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/auth.c') diff --git a/usr/auth.c b/usr/auth.c index 3e0a429..8fc1b98 100644 --- a/usr/auth.c +++ b/usr/auth.c @@ -116,7 +116,7 @@ acl_chap_auth_request(struct iscsi_acl *client, char *username, unsigned int id, return AUTH_STATUS_FAIL; } - if ((session->password_length_in < 1) || + if ((session->password_in_length < 1) || (session->password_in == NULL) || (session->password_in[0] == '\0')) { log_error("failing authentication, no incoming password " @@ -142,7 +142,7 @@ acl_chap_auth_request(struct iscsi_acl *client, char *username, unsigned int id, /* shared secret */ auth_md5_update(&context, (unsigned char *)session->password_in, - session->password_length_in); + session->password_in_length); /* challenge value */ auth_md5_update(&context, (unsigned char *)challenge_data, -- cgit v1.2.1