Changeset 8262340 for zephyr.c


Ignore:
Timestamp:
Feb 25, 2003, 12:56:21 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ecd5dc5
Parents:
316962a
Message:
Added ZResetAuthentication in a number of places to fix problems with
  stale tickets
Added some hooks for malloc debugging
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r7c8060d0 r8262340  
    99
    1010static const char fileIdent[] = "$Id$";
     11
     12Code_t ZResetAuthentication();
    1113
    1214int owl_zephyr_loadsubs(char *filename) {
     
    2830    strcpy(subsfile, filename);
    2931  }
    30  
     32
     33  ZResetAuthentication();
    3134  /* need to redo this to do chunks, not just bail after 3000 */
    3235  count=0;
     
    9598  }
    9699
     100  ZResetAuthentication();
    97101  /* need to redo this to do chunks, not just bag out after 3000 */
    98102  count=0;
     
    137141void unsuball() {
    138142  int ret;
    139  
     143
     144  ZResetAuthentication();
    140145  ret=ZCancelSubscriptions(0);
    141146  if (ret != ZERR_NONE) {
     
    152157  subs[0].zsub_recipient=recip;
    153158
     159  ZResetAuthentication();
    154160  if (ZSubscribeTo(subs,1,0) != ZERR_NONE) {
    155161    fprintf(stderr, "Error subbing\n");
     
    168174  subs[0].zsub_recipient=recip;
    169175
     176  ZResetAuthentication();
    170177  if (ZUnsubscribeTo(subs,1,0) != ZERR_NONE) {
    171178    fprintf(stderr, "Error unsubbing\n");
     
    246253  memset(&notice, 0, sizeof(notice));
    247254
     255  ZResetAuthentication();
     256 
    248257  notice.z_kind=ACKED;
    249258  notice.z_port=0;
     
    389398 
    390399  strcpy(out, "");
    391 
     400  ZResetAuthentication();
    392401  ret=ZLocateUser(user,&numlocs,auth?ZAUTH:ZNOAUTH);
    393402  if (ret != ZERR_NONE) {
Note: See TracChangeset for help on using the changeset viewer.