diff options
Diffstat (limited to 'lib/libotputil/lrfc2289-otp.c')
| -rw-r--r-- | lib/libotputil/lrfc2289-otp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libotputil/lrfc2289-otp.c b/lib/libotputil/lrfc2289-otp.c index 1ba7828..6a47463 100644 --- a/lib/libotputil/lrfc2289-otp.c +++ b/lib/libotputil/lrfc2289-otp.c | |||
| @@ -86,6 +86,9 @@ otputil_otp_code( | |||
| 86 | 86 | ||
| 87 | assert(otp_pass != NULL); | 87 | assert(otp_pass != NULL); |
| 88 | 88 | ||
| 89 | otp_seq = (otp_seq >= 0) ? otp_seq : otputil_defaults.otp_seq; | ||
| 90 | otp_hash = ((otp_hash)) ? otp_hash : otputil_defaults.otp_hash; | ||
| 91 | |||
| 89 | // check otp_seed | 92 | // check otp_seed |
| 90 | secret[0] = '\0'; | 93 | secret[0] = '\0'; |
| 91 | if ((otp_seed)) | 94 | if ((otp_seed)) |
