ref: a0324e37fe3418a116b2cc93f9a75651b4849a20
parent: e95af319e659761f5347188e237d3521d0e59c6b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 18 22:06:33 EDT 2022
ip/sol: handle timeout on password entry for digest auth
--- a/sys/src/cmd/ip/sol.c
+++ b/sys/src/cmd/ip/sol.c
@@ -173,9 +173,15 @@
strlen(nc), nc, strlen(nc),
n, resp, n,
strlen(qop), qop, strlen(qop));
+
+ /* can get timeout/tls error here, so enable restart once we have the key */
+ authok = 1;
recv("lb*", &reply, &ok);
- if(reply != 0x14 && ok != 4)
+ if(reply != 0x14 && ok != 4){
+ authok = 0;
sysfatal("bad digest auth reply: %x %x", reply, ok);
+ }
+
return 0;
}
--
⑨