summaryrefslogtreecommitdiff
path: root/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'request.c')
-rw-r--r--request.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/request.c b/request.c
index 76ca763..64fa83b 100644
--- a/request.c
+++ b/request.c
@@ -44,12 +44,13 @@ build_request(struct dd_request *req, char *buf)
if (req->wildcard != NULL)
snprintf(buf + strlen(buf), BUFLEN - strlen(buf),
"&wildcard=%s", req->wildcard);
- if (req->mx != NULL)
+ if (req->mx != NULL) {
snprintf(buf + strlen(buf), BUFLEN - strlen(buf),
"&mx=%s", req->mx);
- if (req->mx != NULL && req->backmx != NULL)
- snprintf(buf + strlen(buf), BUFLEN - strlen(buf),
- "&backmx=%s", req->backmx);
+ if (req->backmx != NULL)
+ snprintf(buf + strlen(buf), BUFLEN - strlen(buf),
+ "&backmx=%s", req->backmx);
+ }
if (req->offline != NULL)
snprintf(buf + strlen(buf), BUFLEN - strlen(buf),
"&offline=%s", req->offline);