12 May
2009
12 May
'09
8:50 a.m.
On 12-05-2009 10:28:05 +0200, Stefan Manegold wrote:
- if (AUTHgetHashAlgorithms(&algos) != MAL_SUCCEED) assert (0); - /* note that we claim to speak proto 9 here for SHA-1 passwords */ - stream_printf(fdout, "%s:mserver:9:%s:%s", + assert(AUTHgetHashAlgorithms(&algos) == MAL_SUCCEED); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This call will only be executed (and hence variable algos initialized, in case assertions are enabled.
Maybe, this is not was you intended...
(Assertions are (by default) disabled in released binary distributions and source tarballs.)
Thank you very much for waking me up, Stefan!