* mk_cred.c (krb5_mk_cred()), mk_priv.c (krb5_mk_priv()),
authorChris Provenzano <proven@mit.edu>
Thu, 11 May 1995 23:07:45 +0000 (23:07 +0000)
committerChris Provenzano <proven@mit.edu>
Thu, 11 May 1995 23:07:45 +0000 (23:07 +0000)
* 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

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/mk_cred.c
src/lib/krb5/krb/mk_priv.c
src/lib/krb5/krb/mk_safe.c
src/lib/krb5/krb/rd_cred.c
src/lib/krb5/krb/rd_priv.c
src/lib/krb5/krb/rd_safe.c

index 609e8ab3c4332b3cf2cf39cfb9f3e5c72c1c414d..dcdd4af2fdd0743a2c150cf2001c3eb2744b8f1c 100644 (file)
@@ -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
index 8eb964040786cdfaf8219a88918db49908e9291e..d5b5f4e5af12fb30e625ba3577b561e2bd1c9d26 100644 (file)
@@ -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();
index 7efbbafb2f81c642a666a220c91cb98bde5be2ec..5d5bd1faf6ef5b5e6a57174c26d9e050b73e6409 100644 (file)
@@ -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();
index 53817fa7c991c9fa760bf4356d35df56be8f3c91..06861fbfdd7ef1f3c5afd063e8ee0da3c0df510a 100644 (file)
@@ -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();
index 7a7b063bb31204335005faf4cd59ec0883f27089..c83265000f569f3466c693a2b6c2d0ee47f58eff 100644 (file)
@@ -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;
index aa962178ab32188721d8f6522e062e618278bee7..c8d3565f5eadfa4089d09b5c5220b839fb58dbc1 100644 (file)
@@ -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();
index 06d246d5bc148525f225107534300795d599ad34..33ad38aa6a00e5e763ef8b3b997cd1af9989cc50 100644 (file)
@@ -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;