projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
445aadf
)
Retry on write failure. Closes bug #58
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 19 Sep 2010 06:46:06 +0000
(08:46 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 19 Sep 2010 06:52:03 +0000
(08:52 +0200)
src/modules/rlm_otp/otp_pw_valid.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_otp/otp_pw_valid.c
b/src/modules/rlm_otp/otp_pw_valid.c
index
ae0f015
..
93392fb
100644
(file)
--- a/
src/modules/rlm_otp/otp_pw_valid.c
+++ b/
src/modules/rlm_otp/otp_pw_valid.c
@@
-207,6
+207,9
@@
retry:
return -1;
if (otp_write(fdp, (const char *) request, sizeof(*request)) != 0) {
+ if (rc == 0)
+ goto retry; /* otpd disconnect */ /*TODO: pause */
+ else
return -1;
}