Looks like 7.3beta has the null checking in the code. Thanks. ---------------------------------------------------------------------------
Sedlak Anton wrote: > Because author is not responding I'm writing to you. > In contrib/chkpass.c there is no checking against NULL values on input, > thus if you call eg. raw(NULL) then postgresql always dies. > Although storing encrypted password are highly required this behavior > makes this extension module unusable. > > To correct it one must add some checkin before any PG_GETARG_XXX in > chkpass.c: > Suggested type of code follows: > ------------------------------------------------------------------ > if(PG_ARGISNULL(0)) PG_RETURN_NULL(); > ------------------------------------------------------------------ > > Best regards and let me know if this is acceptable > > Sedlak Anton > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED]) > -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly