Changeset 719119de for message.c


Ignore:
Timestamp:
Jan 3, 2011, 8:20:52 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
c23f678
Parents:
d222c44
git-author:
David Benjamin <davidben@mit.edu> (12/15/10 00:46:46)
git-committer:
David Benjamin <davidben@mit.edu> (01/03/11 20:20:52)
Message:
Build reply commands from scratch on outgoing zwrites

We currently reuse the original zwrite line which is problematic when
the user passed -m. Instead regenerates the zwrite line from the
parsed owl_zwrite.

Repurpose the zwriteline attribute because anyone using the old
attribute probably has the same bug.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r72f613a r719119de  
    964964  int ret;
    965965  char hostbuff[5000];
     966  char *replyline;
    966967 
    967968  owl_message_init(m);
     
    981982  owl_message_set_opcode(m, owl_zwrite_get_opcode(z));
    982983  owl_message_set_realm(m, owl_zwrite_get_realm(z)); /* also a hack, but not here */
    983   if(z->zwriteline) {
    984     owl_message_set_zwriteline(m, z->zwriteline);
    985   }
     984
     985  /* Although not strictly the zwriteline, anyone using the unsantized version
     986   * of it probably has a bug. */
     987  replyline = owl_zwrite_get_replyline(z);
     988  owl_message_set_zwriteline(m, replyline);
     989  owl_free(replyline);
     990
    986991  owl_message_set_body(m, body);
    987992  owl_message_set_zsig(m, owl_zwrite_get_zsig(z));
Note: See TracChangeset for help on using the changeset viewer.