auth_ephemeral do_auth() function has this code:

        ret = eph_auth_api.check_response(&cred->digest, _method, ha1);
        if (ret == AUTHENTICATED)
        {
                if (eph_auth_api.post_auth(_m, _h) != AUTHENTICATED)
                {
                        return AUTH_ERROR;
                }
        }
        else if (ret == NOT_AUTHENTICATED)
        {
                return AUTH_INVALID_PASSWORD;
        }
        else
        {
                ret = AUTH_ERROR;
        }

        return AUTH_OK;

i was wondering if there is a typo in 'ret = AUTH_ERROR'; statement.
should it be 'return AUTH_ERROR;' instead?

-- juha

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to