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/msg.c
static void MsgSetRcvFromWithoutAddRef(smsg_t* pThis, prop_t* new)
{
    assert(pThis != NULL);

    if (pThis->msgFlags & NEEDS_DNSRESOL)
    {
        if (pThis->rcvFrom.pfrominet != NULL)
            free(pThis->rcvFrom.pfrominet);
        pThis->msgFlags &= ~NEEDS_DNSRESOL;
    }
    else
    {
        if (pThis->rcvFrom.pRcvFrom != NULL)
            prop.Destruct(&pThis->rcvFrom.pRcvFrom);
    }
    pThis->rcvFrom.pRcvFrom = new;
}
/* set RcvFrom name in msg object WITHOUT calling AddRef.
 * rgerhards, 2013-01-22
 */
set RcvFrom name in msg object WITHOUT calling AddRef.
set RcvFrom name in msg object WITHOUT calling AddRef .
static void MsgSetRcvFromWithoutAddRef(smsg_t* pThis, prop_t* new)
{
    assert(pThis != NULL);
    if (pThis->msgFlags & NEEDS_DNSRESOL)
    {
        if (pThis->rcvFrom.pfrominet != NULL)
            free(pThis->rcvFrom.pfrominet);
        pThis->msgFlags &= ~NEEDS_DNSRESOL;
    }
    else
    {
        if (pThis->rcvFrom.pRcvFrom != NULL)
            prop.Destruct(&pThis->rcvFrom.pRcvFrom);
    }
    pThis->rcvFrom.pRcvFrom = new;
}
static void MsgSetRcvFromWithoutAddRef ( smsg_t * pThis , prop_t * new ) { assert ( pThis != NULL ) ; if ( pThis -> msgFlags & NEEDS_DNSRESOL ) { if ( pThis -> rcvFrom . pfrominet != NULL ) free ( pThis -> rcvFrom . pfrominet ) ; pThis -> msgFlags &= ~ NEEDS_DNSRESOL ; } else { if ( pThis -> rcvFrom . pRcvFrom != NULL ) prop . Destruct ( & pThis -> rcvFrom . pRcvFrom ) ; } pThis -> rcvFrom . pRcvFrom = new ; }
set RcvFrom name in msg object WITHOUT calling AddRef.
set RcvFrom name in msg object WITHOUT calling AddRef .