diff options
author | Chris Provenzano <proven@mit.edu> | 1995-05-11 23:07:45 +0000 |
---|---|---|
committer | Chris Provenzano <proven@mit.edu> | 1995-05-11 23:07:45 +0000 |
commit | cfe0c6a4eee49160d2616699fb4516a01ee629f4 (patch) | |
tree | e081a1eec35ee91fc88987e8d077db86f0e3e151 /src | |
parent | 74311dbe335a1b3d5d605d172a6341a20d2e2a71 (diff) | |
download | krb5-cfe0c6a4eee49160d2616699fb4516a01ee629f4.zip krb5-cfe0c6a4eee49160d2616699fb4516a01ee629f4.tar.gz krb5-cfe0c6a4eee49160d2616699fb4516a01ee629f4.tar.bz2 |
* mk_cred.c (krb5_mk_cred()), mk_priv.c (krb5_mk_priv()),
* mk_safe.c (krb5_mk_safe()), rd_cred.c (krb5_rd_cred()),
* rd_priv.c (krb5_rd_prev()), rd_safe.c (krb5_rd_safe()):
Pass the contents pointer returned from krb5_make_fulladdr()
to free() not the address of the pointer.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5801 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/krb5/krb/ChangeLog | 9 | ||||
-rw-r--r-- | src/lib/krb5/krb/mk_cred.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/krb/mk_priv.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/krb/mk_safe.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/krb/rd_cred.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/krb/rd_priv.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/krb/rd_safe.c | 4 |
7 files changed, 21 insertions, 12 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 609e8ab..dcdd4af 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,12 @@ + +Thu May 11 18:30:21 1995 Chris Provenzano (proven@mit.edu) + + * mk_cred.c (krb5_mk_cred()), mk_priv.c (krb5_mk_priv()), + * mk_safe.c (krb5_mk_safe()), rd_cred.c (krb5_rd_cred()), + * rd_priv.c (krb5_rd_prev()), rd_safe.c (krb5_rd_safe()): + Pass the contents pointer returned from krb5_make_fulladdr() + to free() not the address of the pointer. + Tue May 9 08:34:21 1995 Ezra Peisach <epeisach@kangaroo.mit.edu> * Makefile.in (clean): Remove t_kerb and t_kerb.o diff --git a/src/lib/krb5/krb/mk_cred.c b/src/lib/krb5/krb/mk_cred.c index 8eb9640..d5b5f4e 100644 --- a/src/lib/krb5/krb/mk_cred.c +++ b/src/lib/krb5/krb/mk_cred.c @@ -270,7 +270,7 @@ krb5_mk_ncred(context, auth_context, ppcreds, ppdata, outdata) if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr, auth_context->local_port, &local_fulladdr))) { - CLEANUP_PUSH(&local_fulladdr.contents, free); + CLEANUP_PUSH(local_fulladdr.contents, free); plocal_fulladdr = &local_fulladdr; } else { goto error; @@ -285,7 +285,7 @@ krb5_mk_ncred(context, auth_context, ppcreds, ppdata, outdata) if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ - CLEANUP_PUSH(&remote_fulladdr.contents, free); + CLEANUP_PUSH(remote_fulladdr.contents, free); premote_fulladdr = &remote_fulladdr; } else { CLEANUP_DONE(); diff --git a/src/lib/krb5/krb/mk_priv.c b/src/lib/krb5/krb/mk_priv.c index 7efbbaf..5d5bd1f 100644 --- a/src/lib/krb5/krb/mk_priv.c +++ b/src/lib/krb5/krb/mk_priv.c @@ -197,7 +197,7 @@ krb5_mk_priv(context, auth_context, userdata, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr, auth_context->local_port, &local_fulladdr))) { - CLEANUP_PUSH(&local_fulladdr.contents, free); + CLEANUP_PUSH(local_fulladdr.contents, free); plocal_fulladdr = &local_fulladdr; } else { goto error; @@ -212,7 +212,7 @@ krb5_mk_priv(context, auth_context, userdata, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ - CLEANUP_PUSH(&remote_fulladdr.contents, free); + CLEANUP_PUSH(remote_fulladdr.contents, free); premote_fulladdr = &remote_fulladdr; } else { CLEANUP_DONE(); diff --git a/src/lib/krb5/krb/mk_safe.c b/src/lib/krb5/krb/mk_safe.c index 53817fa..06861fb 100644 --- a/src/lib/krb5/krb/mk_safe.c +++ b/src/lib/krb5/krb/mk_safe.c @@ -180,7 +180,7 @@ krb5_mk_safe(context, auth_context, userdata, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr, auth_context->local_port, &local_fulladdr))){ - CLEANUP_PUSH(&local_fulladdr.contents, free); + CLEANUP_PUSH(local_fulladdr.contents, free); plocal_fulladdr = &local_fulladdr; } else { goto error; @@ -196,7 +196,7 @@ krb5_mk_safe(context, auth_context, userdata, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ - CLEANUP_PUSH(&remote_fulladdr.contents, free); + CLEANUP_PUSH(remote_fulladdr.contents, free); premote_fulladdr = &remote_fulladdr; } else { CLEANUP_DONE(); diff --git a/src/lib/krb5/krb/rd_cred.c b/src/lib/krb5/krb/rd_cred.c index 7a7b063..c832650 100644 --- a/src/lib/krb5/krb/rd_cred.c +++ b/src/lib/krb5/krb/rd_cred.c @@ -245,7 +245,7 @@ krb5_rd_cred(context, auth_context, pcreddata, pppcreds, outdata) if (!(retval = krb5_make_fulladdr(context,auth_context->local_addr, auth_context->local_port, &local_fulladdr))){ - CLEANUP_PUSH(&local_fulladdr.contents, free); + CLEANUP_PUSH(local_fulladdr.contents, free); plocal_fulladdr = &local_fulladdr; } else { return retval; @@ -260,7 +260,7 @@ krb5_rd_cred(context, auth_context, pcreddata, pppcreds, outdata) if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ - CLEANUP_PUSH(&remote_fulladdr.contents, free); + CLEANUP_PUSH(remote_fulladdr.contents, free); premote_fulladdr = &remote_fulladdr; } else { return retval; diff --git a/src/lib/krb5/krb/rd_priv.c b/src/lib/krb5/krb/rd_priv.c index aa96217..c8d3565 100644 --- a/src/lib/krb5/krb/rd_priv.c +++ b/src/lib/krb5/krb/rd_priv.c @@ -210,7 +210,7 @@ krb5_rd_priv(context, auth_context, inbuf, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr, auth_context->local_port, &local_fulladdr))){ - CLEANUP_PUSH(&local_fulladdr.contents, free); + CLEANUP_PUSH(local_fulladdr.contents, free); plocal_fulladdr = &local_fulladdr; } else { return retval; @@ -225,7 +225,7 @@ krb5_rd_priv(context, auth_context, inbuf, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ - CLEANUP_PUSH(&remote_fulladdr.contents, free); + CLEANUP_PUSH(remote_fulladdr.contents, free); premote_fulladdr = &remote_fulladdr; } else { CLEANUP_DONE(); diff --git a/src/lib/krb5/krb/rd_safe.c b/src/lib/krb5/krb/rd_safe.c index 06d246d..33ad38a 100644 --- a/src/lib/krb5/krb/rd_safe.c +++ b/src/lib/krb5/krb/rd_safe.c @@ -201,7 +201,7 @@ krb5_rd_safe(context, auth_context, inbuf, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context, auth_context->local_addr, auth_context->local_port, &local_fulladdr))){ - CLEANUP_PUSH(&local_fulladdr.contents, free); + CLEANUP_PUSH(local_fulladdr.contents, free); plocal_fulladdr = &local_fulladdr; } else { return retval; @@ -216,7 +216,7 @@ krb5_rd_safe(context, auth_context, inbuf, outbuf, outdata) if (!(retval = krb5_make_fulladdr(context,auth_context->remote_addr, auth_context->remote_port, &remote_fulladdr))){ - CLEANUP_PUSH(&remote_fulladdr.contents, free); + CLEANUP_PUSH(remote_fulladdr.contents, free); premote_fulladdr = &remote_fulladdr; } else { return retval; |