Changeset a15a84f for message.c


Ignore:
Timestamp:
Dec 29, 2002, 9:09:35 AM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3969e3a
Parents:
5c7b1b1
Message:
Some updates to the intro doc
The halloweek hack
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    rd309eb3 ra15a84f  
    360360void owl_message_create_from_znotice(owl_message *m, ZNotice_t *n) {
    361361  struct hostent *hent;
    362   int k;
     362  int k, ret;
    363363  char *ptr;
    364364
     
    406406
    407407    out=owl_malloc(strlen(m->body)*16+20);
    408     zcrypt_decrypt(out, m->body, m->class, m->inst);
    409     owl_free(m->body);
    410     m->body=out;
     408    ret=zcrypt_decrypt(out, m->body, m->class, m->inst);
     409    if (ret==0) {
     410      owl_free(m->body);
     411      m->body=out;
     412    } else {
     413      owl_free(out);
     414    }
    411415  }
    412416
Note: See TracChangeset for help on using the changeset viewer.