openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/net.c
static void clearAllowedSenders(uchar* pszType)
{
    struct AllowedSenders* pPrev;
    struct AllowedSenders* pCurr = NULL;

    if (setAllowRoot(&pCurr, pszType) != RS_RET_OK)
        return; /* if something went wrong, so let's leave */

    while (pCurr != NULL)
    {
        pPrev = pCurr;
        pCurr = pCurr->pNext;
        /* now delete the entry we are right now processing */
        if (F_ISSET(pPrev->allowedSender.flags, ADDR_NAME))
            free(pPrev->allowedSender.addr.HostWildcard);
        else
            free(pPrev->allowedSender.addr.NetAddr);
        free(pPrev);
    }

    /* indicate root pointer is de-init (was forgotten previously, resulting in
     * all kinds of interesting things) -- rgerhards, 2009-01-12
     */
    reinitAllowRoot(pszType);
}
/* function to clear the allowed sender structure in cases where
 * it must be freed (occurs most often when HUPed).
 * rgerhards, 2008-12-02: revamped this code when we fixed the interface
 * definition. Now an iterative algorithm is used.
 */
function to clear the allowed sender structure in cases where
it must be freed (occurs most often when HUPed).
rgerhards, 2008-12-02: revamped this code when we fixed the interface
definition. Now an iterative algorithm is used.
function to clear the allowed sender structure in cases where it must be freed ( occurs most often when HUPed ) . rgerhards 2008 - 12 - 02 : revamped this code when we fixed the interface definition . Now an iterative algorithm is used .
static void clearAllowedSenders(uchar* pszType)
{
    struct AllowedSenders* pPrev;
    struct AllowedSenders* pCurr = NULL;
    if (setAllowRoot(&pCurr, pszType) != RS_RET_OK)
        return; 
    while (pCurr != NULL)
    {
        pPrev = pCurr;
        pCurr = pCurr->pNext;
        if (F_ISSET(pPrev->allowedSender.flags, ADDR_NAME))
            free(pPrev->allowedSender.addr.HostWildcard);
        else
            free(pPrev->allowedSender.addr.NetAddr);
        free(pPrev);
    }
    reinitAllowRoot(pszType);
}
static void clearAllowedSenders ( uchar * pszType ) { struct AllowedSenders * pPrev ; struct AllowedSenders * pCurr = NULL ; if ( setAllowRoot ( & pCurr , pszType ) != RS_RET_OK ) return ; while ( pCurr != NULL ) { pPrev = pCurr ; pCurr = pCurr -> pNext ; if ( F_ISSET ( pPrev -> allowedSender . flags , ADDR_NAME ) ) free ( pPrev -> allowedSender . addr . HostWildcard ) ; else free ( pPrev -> allowedSender . addr . NetAddr ) ; free ( pPrev ) ; } reinitAllowRoot ( pszType ) ; }
function to clear the allowed sender structure in cases where
 it must be freed (occurs most often when HUPed).
function to clear the allowed sender structure in cases where it must be freed ( occurs most often when HUPed ) .
/* if something went wrong, so let's leave */ /* now delete the entry we are right now processing */ /* indicate root pointer is de-init (was forgotten previously, resulting in
     * all kinds of interesting things) -- rgerhards, 2009-01-12
     */