aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--lib/libotputil/lrfc2289-otp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libotputil/lrfc2289-otp.c b/lib/libotputil/lrfc2289-otp.c
index 6a47463..d02343a 100644
--- a/lib/libotputil/lrfc2289-otp.c
+++ b/lib/libotputil/lrfc2289-otp.c
@@ -164,10 +164,10 @@ otputil_otp_str(
164 uint8_t bv_val[8]; 164 uint8_t bv_val[8];
165 static char buff[32]; 165 static char buff[32];
166 166
167 dstlen = ((dst)) ? dstlen : sizeof(buff); 167 dstlen = ((dst)) ? dstlen : sizeof(buff);
168 dst = ((dst)) ? dst : buff; 168 dst = ((dst)) ? dst : buff;
169 res.bv_val = bv_val; 169 res.bv_val = bv_val;
170 res.bv_len = sizeof(bv_val); 170 res.bv_len = sizeof(bv_val);
171 171
172 if (otputil_otp_code(otp_pass, otp_seed, otp_seq, otp_hash, &val) == -1) 172 if (otputil_otp_code(otp_pass, otp_seed, otp_seq, otp_hash, &val) == -1)
173 return(NULL); 173 return(NULL);