aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/driver.c b/driver.c
index 3f5fc649..5d8a0d01 100644
--- a/driver.c
+++ b/driver.c
@@ -1478,25 +1478,25 @@ const struct method *proto; /* protocol method table */
}
else
{
+ bool wholesize = !protocol->fetch_body;
+
/* request a message */
ok = (protocol->fetch_headers)(sock, ctl, num, &len);
if (ok != 0)
goto cleanUp;
set_timeout(ctl->server.timeout);
- if (outlevel > O_SILENT)
+ /* -1 means we didn't see a size in the response */
+ if (len == -1 && msgsizes)
{
- bool wholesize = !protocol->fetch_body;
+ len = msgsizes[num - 1];
+ wholesize = TRUE;
+ }
+ if (outlevel > O_SILENT)
+ {
error_build("reading message %d", num);
- /* -1 means we didn't see a size in the response */
- if (len == -1 && msgsizes)
- {
- len = msgsizes[num - 1];
- wholesize = TRUE;
- }
-
if (len > 0)
error_build(" (%d %sbytes)",
len, wholesize ? "" : "header ");