All pastes #612065 Raw Edit

Meins

public text v1 · immutable
·published 2007-07-10 05:19 UTC
rendered paste body
BOOL mangle_check_cache_alloc(const char *name, char **presult,
                              const struct share_params *p)
{
        pstring tmp;
        char *result;
        pstrcpy(tmp, name);

        if (!mangle_check_cache(tmp, sizeof(pstring), p)
            || !(result = SMB_STRDUP(tmp))) {
                return False;
        }
        *presult = result;
        return True;
}