projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
065d8b1
)
otp_authorize(): fix trivial State to be non-NUL, for Cisco bug
author
fcusack
<fcusack>
Wed, 8 Feb 2006 21:22:10 +0000
(21:22 +0000)
committer
fcusack
<fcusack>
Wed, 8 Feb 2006 21:22:10 +0000
(21:22 +0000)
src/modules/rlm_otp/otp_rlm.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_otp/otp_rlm.c
b/src/modules/rlm_otp/otp_rlm.c
index
0f82394
..
bfb960f
100644
(file)
--- a/
src/modules/rlm_otp/otp_rlm.c
+++ b/
src/modules/rlm_otp/otp_rlm.c
@@
-394,7
+394,8
@@
gen_challenge:
}
} else {
state = rad_malloc(5);
- (void) sprintf(state, "0x00");
+ /* a non-NUL byte, so that Cisco (see otp_gen_state()) returns it */
+ (void) sprintf(state, "0x01");
}
pairadd(&request->reply->vps, pairmake("State", state, T_OP_EQ));
free(state);