summaryrefslogtreecommitdiff
path: root/src/common/address.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/address.c')
-rw-r--r--src/common/address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c
index 3c6eb6f5ac..c7483af09c 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -917,7 +917,7 @@ tor_addr_port_parse(const char *s, tor_addr_t *addr_out, uint16_t *port_out)
portval = 0;
}
- if (*port_out)
+ if (port_out)
*port_out = portval;
tor_addr_copy(addr_out, &addr);