openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nss-pam-ldapd/0.9.8-r0/nss-pam-ldapd-0.9.8/nslcd/log.c
void log_clearsession(void)
{
#ifndef TLS
    char *sessionid, *requestid;
    pthread_once(&tls_init_once, tls_init_keys);
    sessionid = pthread_getspecific(sessionid_key);
    requestid = pthread_getspecific(requestid_key);
#endif /* no TLS */
    /* set the session id to empty */
    if (sessionid != NULL)
        sessionid[0] = '\0';
    /* set the request id to empty */
    if (requestid != NULL)
        requestid[0] = '\0';
}
/* indicate that we should clear any session identifiers set by
   log_newsession */
indicate that we should clear any session identifiers set by
log_newsession
indicate that we should clear any session identifiers set by log_newsession
void log_clearsession(void)
{
#ifndef TLS
    char *sessionid, *requestid;
    pthread_once(&tls_init_once, tls_init_keys);
    sessionid = pthread_getspecific(sessionid_key);
    requestid = pthread_getspecific(requestid_key);
#endif 
    if (sessionid != NULL)
        sessionid[0] = '\0';
    if (requestid != NULL)
        requestid[0] = '\0';
}
void log_clearsession ( void ) { #ifndef TLS char * sessionid , * requestid ; pthread_once ( & tls_init_once , tls_init_keys ) ; sessionid = pthread_getspecific ( sessionid_key ) ; requestid = pthread_getspecific ( requestid_key ) ; #endif if ( sessionid != NULL ) sessionid [ 0 ] = ' \0 ' ; if ( requestid != NULL ) requestid [ 0 ] = ' \0 ' ; }
indicate that we should clear any session identifiers set by
log_newsession
indicate that we should clear any session identifiers set by log_newsession
/* no TLS */ /* set the session id to empty */ /* set the request id to empty */