mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Make the pt/transports test not crash.
This commit is contained in:
parent
d6c18c5804
commit
b1bd30c24c
@ -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. */
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user