Proposed patch for auth.c