From d58d0980f23dc1b5b6e3910f87ce28a97a6d3809 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 3 May 1995 01:18:57 +0000 Subject: [PATCH] Fix lots of typos in krb5_make_fulladdrs() patch. (Lots of places where remote_addr was used where remote_port should have been used instead.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5687 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/mk_cred.c | 48 -------------------------------------- src/lib/krb5/krb/mk_priv.c | 2 +- src/lib/krb5/krb/rd_cred.c | 4 ++-- src/lib/krb5/krb/rd_priv.c | 4 ++-- src/lib/krb5/krb/rd_safe.c | 4 ++-- 5 files changed, 7 insertions(+), 55 deletions(-) diff --git a/src/lib/krb5/krb/mk_cred.c b/src/lib/krb5/krb/mk_cred.c index 44b6879a3..8eb964040 100644 --- a/src/lib/krb5/krb/mk_cred.c +++ b/src/lib/krb5/krb/mk_cred.c @@ -6,54 +6,6 @@ * Provide an interface to assemble and disassemble krb5_cred * structures. * - * MODIFIED - * $Log$ - * Revision 5.11 1995/05/02 23:31:39 proven - * * mk_cred.c (mk_cred()), mk_priv.c (mk_priv()), mk_safe.c (mk_safe()), - * * rd_cred.c (rd_cred()), rd_priv.c (rd_priv()), rd_safe.c (rd_safe()): - * Don't call krb5_make_fulladdrs() if a port isn't specified. - * - * Revision 5.10 1995/05/01 20:49:45 proven - * * auth_con.c (krb5_auth_con_free()) : - * Free all the data associated with the auth_context. - * - * * auth_con.c (krb5_auth_con_setkey()) : Removed. - * * mk_rep.c (mk_rep()), - * The krb5_mk_rep() routine must always encode the data in - * the keyblock of the ticket, not the subkey. - * - * * cleanup.h, auth_con.c (krb5_auth_con_setports()) : Added. - * * auth_con.h, mk_cred.c (mk_cred()), mk_priv.c (mk_priv()), - * * mk_safe.c (mk_safe()), rd_cred.c (rd_cred()), - * * rd_priv.c (rd_priv()), rd_safe.c (rd_safe()) : - * Changes to auth_context to better support full addresses. - * - * Revision 5.9 1995/04/28 01:18:18 keithv - * Fixes so that the Unix changes no longer breaks on the PC. - * - * Revision 5.8 1995/04/26 03:03:11 proven - * * Makefile.in : Added gc_via_tkt.c and removed get_fcreds.c - * * auth_con.c (krb5_auth_con_setaddrs()) : Fixed so it allocates - * space and copies addresses, not just pointer. - * * mk_cred.c: Completely rewritten from sources donated by asriniva. - * * rd_cred.c: Completely rewritten from sources donated by asriniva. - * * mk_priv.c (krb5_mk_priv()), mk_safe.c (krb5_mk_safe()), - * rd_priv.c (krb5_rd_priv()), and rd_safe (krb5_rd_safe()) : - * Try using a subkey before using the session key for encryption. - * * recvauth.c (krb5_recvauth()): Don't close the rcache on success. - * - * Revision 1.3 1995/01/26 00:09:24 asriniva - * Completely rewrote API to credential passing code. - * - * Revision 1.2 1994/12/30 21:57:17 asriniva - * Killed compile time warnings/errors. - * Fixed runtime bugs. - * Require a ticket when calling krb5_initcred. - * Cleaned up krb5_addticket. - * - * Revision 1.1 1994/12/29 17:03:30 asriniva - * Initial revision - * */ #include #include "cleanup.h" diff --git a/src/lib/krb5/krb/mk_priv.c b/src/lib/krb5/krb/mk_priv.c index fe309399b..7efbbafb2 100644 --- a/src/lib/krb5/krb/mk_priv.c +++ b/src/lib/krb5/krb/mk_priv.c @@ -208,7 +208,7 @@ krb5_mk_priv(context, auth_context, userdata, outbuf, outdata) } if (auth_context->remote_addr) { - if (auth_context->remote_addr) { + if (auth_context->remote_port) { if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ diff --git a/src/lib/krb5/krb/rd_cred.c b/src/lib/krb5/krb/rd_cred.c index 7987ba460..7a7b063bb 100644 --- a/src/lib/krb5/krb/rd_cred.c +++ b/src/lib/krb5/krb/rd_cred.c @@ -241,7 +241,7 @@ krb5_rd_cred(context, auth_context, pcreddata, pppcreds, outdata) CLEANUP_INIT(2); if (auth_context->local_addr) { - if (auth_context->local_addr) { + if (auth_context->local_port) { if (!(retval = krb5_make_fulladdr(context,auth_context->local_addr, auth_context->local_port, &local_fulladdr))){ @@ -256,7 +256,7 @@ krb5_rd_cred(context, auth_context, pcreddata, pppcreds, outdata) } if (auth_context->remote_addr) { - if (auth_context->remote_addr) { + if (auth_context->remote_port) { if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ diff --git a/src/lib/krb5/krb/rd_priv.c b/src/lib/krb5/krb/rd_priv.c index a7964513b..aa962178a 100644 --- a/src/lib/krb5/krb/rd_priv.c +++ b/src/lib/krb5/krb/rd_priv.c @@ -206,7 +206,7 @@ krb5_rd_priv(context, auth_context, inbuf, outbuf, outdata) CLEANUP_INIT(2); if (auth_context->local_addr) { - if (auth_context->local_addr) { + if (auth_context->local_port) { if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr, auth_context->local_port, &local_fulladdr))){ @@ -221,7 +221,7 @@ krb5_rd_priv(context, auth_context, inbuf, outbuf, outdata) } if (auth_context->remote_addr) { - if (auth_context->remote_addr) { + if (auth_context->remote_port) { if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ diff --git a/src/lib/krb5/krb/rd_safe.c b/src/lib/krb5/krb/rd_safe.c index b4eb1980e..06d246d5b 100644 --- a/src/lib/krb5/krb/rd_safe.c +++ b/src/lib/krb5/krb/rd_safe.c @@ -197,7 +197,7 @@ krb5_rd_safe(context, auth_context, inbuf, outbuf, outdata) CLEANUP_INIT(2); if (auth_context->local_addr) { - if (auth_context->local_addr) { + if (auth_context->local_port) { if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr, auth_context->local_port, &local_fulladdr))){ @@ -212,7 +212,7 @@ krb5_rd_safe(context, auth_context, inbuf, outbuf, outdata) } if (auth_context->remote_addr) { - if (auth_context->remote_addr) { + if (auth_context->remote_port) { if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ -- 2.26.2