summaryrefslogtreecommitdiffstats
path: root/demos/bio/server-conf.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-12-18 13:28:44 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-12-18 13:28:44 +0000
commit88c21c47a3d187d4f8c4e87e3c6088198cb08a99 (patch)
treee9052f92f6b626322a74c6d162751ca98ec06280 /demos/bio/server-conf.c
parent4a253652eebd8678d2d4494705c0ce498966fc20 (diff)
Update demo.
Diffstat (limited to 'demos/bio/server-conf.c')
-rw-r--r--demos/bio/server-conf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/bio/server-conf.c b/demos/bio/server-conf.c
index 403905ceb7..0d940f0f77 100644
--- a/demos/bio/server-conf.c
+++ b/demos/bio/server-conf.c
@@ -123,7 +123,12 @@ again:
BIO_free_all(tmp);
goto again;
}
- if (i < 0) goto err;
+ if (i < 0)
+ {
+ if (BIO_should_retry(in))
+ continue;
+ goto err;
+ }
fwrite(buf,1,i,stdout);
fflush(stdout);
}