Changeset 667a1b6 for zephyr.c


Ignore:
Timestamp:
Dec 31, 2004, 7:11:43 PM (20 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:
7e6d1fd
Parents:
8232149
Message:
Don't crash doing zlocate with bad/no tickets [BZ 12]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r74037d9 r667a1b6  
    583583  ret=ZLocateUser(user,&numlocs,auth?ZAUTH:ZNOAUTH);
    584584  if (ret != ZERR_NONE) {
    585     owl_function_error("Error locating user %s", user);
     585    sprintf(out, "Error locating user %s\n", user);
     586    return;
    586587  }
    587588
     
    596597    ZGetLocations(&locations,&one);
    597598    myuser=short_zuser(user);
    598     sprintf(out, "%s%s: %s\t%s\t%s\n", out, myuser, locations.host, locations.tty, locations.time);
     599    sprintf(out, "%s%s: %s\t%s\t%s\n", out, myuser,
     600            locations.host ? locations.host : "?",
     601            locations.tty ? locations.tty : "?",
     602            locations.time ? locations.time : "?");
    599603    owl_free(myuser);
    600604  }
Note: See TracChangeset for help on using the changeset viewer.