summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/iproxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/iproxy.c b/tools/iproxy.c
index 5dca580..bd56ebd 100644
--- a/tools/iproxy.c
+++ b/tools/iproxy.c
@@ -68,9 +68,9 @@ struct client_data {
};
#define CDATA_FREE(x) if (x) { \
- if (x->fd > 0) socket_close(x->fd); \
- if (x->sfd > 0) socket_close(x->sfd); \
- free(x->udid); \
+ if ((x)->fd > 0) socket_close((x)->fd); \
+ if ((x)->sfd > 0) socket_close((x)->sfd); \
+ free((x)->udid); \
free(x); \
}