Error out if struct proxyspec is not complete

The default proto is tcp, so we allow the Proto option to be omitted.
pull/48/head
Soner Tari 3 years ago
parent c7e43f359d
commit f5bb67f581

@ -4512,6 +4512,10 @@ set_proxyspec_option(proxyspec_t *spec, const char *argv0,
#ifdef DEBUG_OPTS
log_dbg_printf("ProxySpec } on line %d\n", line_num);
#endif /* DEBUG_OPTS */
if (!spec_addrs->addr || !spec_addrs->af) {
fprintf(stderr, "Incomplete ProxySpec on line %d\n", line_num);
return -1;
}
// Return 1 to indicate the end of structured proxyspec
return 1;
}

Loading…
Cancel
Save