summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/mk_cred.c
diff options
context:
space:
mode:
authorChris Provenzano <proven@mit.edu>1995-05-02 23:31:45 +0000
committerChris Provenzano <proven@mit.edu>1995-05-02 23:31:45 +0000
commit6f2f64705dede4a4d0ed546e95721df18391ff98 (patch)
tree3929d2d671371fd8d4b8157e7b837a9c4192cc95 /src/lib/krb5/krb/mk_cred.c
parent49fd9c5695c37addf7bb4c03bfd158f501032074 (diff)
downloadkrb5-6f2f64705dede4a4d0ed546e95721df18391ff98.tar.gz
krb5-6f2f64705dede4a4d0ed546e95721df18391ff98.tar.xz
krb5-6f2f64705dede4a4d0ed546e95721df18391ff98.zip
* 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5684 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/mk_cred.c')
-rw-r--r--src/lib/krb5/krb/mk_cred.c41
1 files changed, 28 insertions, 13 deletions
diff --git a/src/lib/krb5/krb/mk_cred.c b/src/lib/krb5/krb/mk_cred.c
index 3970ddb5e0..44b6879a39 100644
--- a/src/lib/krb5/krb/mk_cred.c
+++ b/src/lib/krb5/krb/mk_cred.c
@@ -8,6 +8,11 @@
*
* 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.
@@ -309,23 +314,33 @@ krb5_mk_ncred(context, auth_context, ppcreds, ppdata, outdata)
CLEANUP_INIT(2);
if (auth_context->local_addr) {
- if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr,
- auth_context->local_port, &local_fulladdr))) {
- CLEANUP_PUSH(&local_fulladdr.contents, free);
- plocal_fulladdr = &local_fulladdr;
- } else {
- goto error;
+ if (auth_context->local_port) {
+ if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr,
+ auth_context->local_port,
+ &local_fulladdr))) {
+ CLEANUP_PUSH(&local_fulladdr.contents, free);
+ plocal_fulladdr = &local_fulladdr;
+ } else {
+ goto error;
+ }
+ } else {
+ plocal_fulladdr = auth_context->local_addr;
}
}
if (auth_context->remote_addr) {
- if (!(retval = krb5_make_fulladdr(context, auth_context->remote_addr,
- auth_context->remote_port, &remote_fulladdr))){
- CLEANUP_PUSH(&remote_fulladdr.contents, free);
- premote_fulladdr = &remote_fulladdr;
- } else {
- CLEANUP_DONE();
- goto error;
+ if (auth_context->remote_port) {
+ if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr,
+ auth_context->remote_port,
+ &remote_fulladdr))){
+ CLEANUP_PUSH(&remote_fulladdr.contents, free);
+ premote_fulladdr = &remote_fulladdr;
+ } else {
+ CLEANUP_DONE();
+ goto error;
+ }
+ } else {
+ premote_fulladdr = auth_context->remote_addr;
}
}