ref: dfa6b6c67088fc40fb59738bc53f7c949217060d
parent: 9993b3909e504b29083dae07822e5489917d5cb8
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;
}