Changeset 32ad44d


Ignore:
Timestamp:
Oct 4, 2009, 12:18:45 AM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3b80321
Parents:
6f0fbe9
Message:
Don't call any libzephyr functions before ZInitialize().

With krb5 Zephyr, calling e.g. ZGetSender() before ZInitialize() not
only doesn't work, but breaks libzephyr. Make sure that no code can
call Zephyr accessors before we call ZInitialize.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    rdf569c5 r32ad44d  
    172172  }
    173173#endif
    174   return(0);
     174  return 0;
    175175}
    176176
     
    180180  if(owl_global_is_havezephyr(&g))
    181181    return(ZPending());
    182   else
    183     return 0;
    184 #else
    185   return(0);
    186 #endif
     182#endif
     183  return 0;
    187184}
    188185
     
    190187{
    191188#ifdef HAVE_LIBZEPHYR
    192   return(ZGetRealm());
    193 #else
    194   return("");
    195 #endif
     189  if (owl_global_is_havezephyr(&g))
     190    return(ZGetRealm());
     191#endif
     192  return "";
    196193}
    197194
     
    199196{
    200197#ifdef HAVE_LIBZEPHYR
    201   return(ZGetSender());
    202 #else
    203   return("");
    204 #endif
     198  if (owl_global_is_havezephyr(&g))
     199    return(ZGetSender());
     200#endif
     201  return "";
    205202}
    206203
Note: See TracChangeset for help on using the changeset viewer.