Missing a "retval = " so errors in addresses were passing
authorEzra Peisach <epeisach@mit.edu>
Fri, 12 May 1995 11:34:57 +0000 (11:34 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 12 May 1995 11:34:57 +0000 (11:34 +0000)
successfully.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5803 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/rd_cred.c

index dcdd4af2fdd0743a2c150cf2001c3eb2744b8f1c..c22134e82c1d9448346466359e50088b9b2fa97e 100644 (file)
@@ -1,3 +1,7 @@
+Thu May 11 22:42:30 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * rd_cred.c (krb5_rd_cred_basic): If address don't match, return
+               KRB5KRB_AP_ERR_BADADDR (add missing retval).
 
 Thu May 11 18:30:21 1995  Chris Provenzano (proven@mit.edu)
 
index c83265000f569f3466c693a2b6c2d0ee47f58eff..05c99ac073b83432aa653ce38986bcbd9f3f912d 100644 (file)
@@ -93,7 +93,7 @@ krb5_rd_cred_basic(context, pcreddata, pkeyblock, local_addr, remote_addr,
        goto cleanup_cred;
 
     if (!krb5_address_compare(context, remote_addr, encpart.s_address)) {
-        KRB5KRB_AP_ERR_BADADDR;
+        retval = KRB5KRB_AP_ERR_BADADDR;
         goto cleanup_cred;
     }