aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/transports.c4
-rw-r--r--src/test/test_pt.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/or/transports.c b/src/or/transports.c
index 5e96b39a3..10155c447 100644
--- a/src/or/transports.c
+++ b/src/or/transports.c
@@ -699,9 +699,7 @@ handle_proxy_line(const char *line, managed_proxy_t *mp)
err:
mp->conf_state = PT_PROTO_BROKEN;
log_warn(LD_CONFIG, "Managed proxy at '%s' failed the configuration protocol"
- " and will be destroyed.", mp->argv[0]);
-
- return;
+ " and will be destroyed.", mp->argv ? mp->argv[0] : "");
}
/** Parses an ENV-ERROR <b>line</b> and warns the user accordingly. */
diff --git a/src/test/test_pt.c b/src/test/test_pt.c
index f97b21fa0..45f441106 100644
--- a/src/test/test_pt.c
+++ b/src/test/test_pt.c
@@ -91,7 +91,7 @@ test_pt_protocol(void)
{
char line[200];
- managed_proxy_t *mp = tor_malloc(sizeof(managed_proxy_t));
+ managed_proxy_t *mp = tor_malloc_zero(sizeof(managed_proxy_t));
mp->conf_state = PT_PROTO_LAUNCHED;
mp->transports = smartlist_create();