ip/sol: handle timeout on password entry for digest auth
This commit is contained in:
parent
eb81b7602c
commit
4d1c1f5c6e
1 changed files with 7 additions and 1 deletions
|
@ -173,9 +173,15 @@ digestauth(char *server, char *user, char *method, char *url)
|
||||||
strlen(nc), nc, strlen(nc),
|
strlen(nc), nc, strlen(nc),
|
||||||
n, resp, n,
|
n, resp, n,
|
||||||
strlen(qop), qop, strlen(qop));
|
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);
|
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);
|
sysfatal("bad digest auth reply: %x %x", reply, ok);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue