srp.c: Test for BN_mod_exp failure

man page says you should always check the return value of the BN_{math} functions.