Changeset b381b55


Ignore:
Timestamp:
Mar 1, 2010, 8:33:48 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.5
Children:
54e1fe4
Parents:
b22170c
git-author:
Anders Kaseorg <andersk@mit.edu> (02/08/10 22:40:45)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/01/10 20:33:48)
Message:
zcrypt: Don’t leak the body after decrypting a message.

This fixes a leak noticed by nelhage.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    re9c6fc8 rb381b55  
    846846    out=owl_malloc(strlen(owl_message_get_body(m))*16+20);
    847847    ret=owl_zcrypt_decrypt(out, owl_message_get_body(m), owl_message_get_class(m), owl_message_get_instance(m));
    848     if (ret==0) {
     848    if (ret == 0)
    849849      owl_message_set_body(m, out);
    850     } else {
    851       owl_free(out);
    852     }
     850    owl_free(out);
    853851  }
    854852#endif 
Note: See TracChangeset for help on using the changeset viewer.