summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-04-19 02:06:33 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-04-19 02:06:33 +0000
commitdfa6b6c67088fc40fb59738bc53f7c949217060d (patch)
tree7d4ecf5975ad3c33c6cea86601366ce48c8903e0 /sys/src/cmd/ip
parent9993b3909e504b29083dae07822e5489917d5cb8 (diff)
ip/sol: handle timeout on password entry for digest auth
Diffstat (limited to 'sys/src/cmd/ip')
-rw-r--r--sys/src/cmd/ip/sol.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/sol.c b/sys/src/cmd/ip/sol.c
index 13f66b61a..c15c94f71 100644
--- a/sys/src/cmd/ip/sol.c
+++ b/sys/src/cmd/ip/sol.c
@@ -173,9 +173,15 @@ digestauth(char *server, char *user, char *method, char *url)
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;
}