Clarify authorization failure reason strings sent back to the client

This commit is contained in:
Jon Turney 2015-03-16 15:43:07 +00:00 committed by Adam Jackson
parent c1703cdf3b
commit a026972776

View File

@ -215,11 +215,11 @@ CheckAuthorization(unsigned int name_length,
return (*protocols[i].Check) (data_length, data, client,
reason);
}
*reason = "Protocol not supported by server\n";
*reason = "Authorization protocol not supported by server\n";
}
}
else
*reason = "No protocol specified\n";
*reason = "Authorization required, but no authorization protocol specified\n";
return (XID) ~0L;
}