Commit 8e1c0fb3 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Slight improvment to disgusting hack in last revision, to make sure we

read in all of the bootlog data.
parent f4361cc1
......@@ -5602,10 +5602,17 @@ COMMAND_PROTOTYPE(dobootlog)
* Note that tmcc version 22 now closes its write side.
*/
if (vers >= 22 && tcp && !isssl) {
int cc = READ(sock, &buf[len], sizeof(buf) - len);
char *bp = &buf[len];
while (len < sizeof(buf)) {
int cc = READ(sock, bp, sizeof(buf) - len);
if (cc <= 0)
break;
if (cc > 0)
len += cc;
bp += cc;
}
}
if ((cp = (char *) malloc((2*len)+1)) == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment