Fix tor-fw-helper-natpmp.c API usage

libnatpmp-20110618 changed the API that tor-fw-helper used and for a time
tor-fw-helper could not build against the newest libnatpmp. This patch brings
support for libnatpmp to tor-fw-helper.
This commit is contained in:
Jacob Appelbaum
2011-06-19 02:31:13 -07:00
committed by Roger Dingledine
parent 8653f31d8d
commit 8b0d9452ca
3 changed files with 4 additions and 2 deletions
@@ -55,7 +55,7 @@ tor_natpmp_init(tor_fw_options_t *tor_fw_options, void *backend_state)
if (tor_fw_options->verbose)
fprintf(stdout, "V: natpmp init...\n");
r = initnatpmp(&(state->natpmp));
r = initnatpmp(&(state->natpmp), 0, 0);
if (r == 0) {
state->init = 1;
fprintf(stdout, "tor-fw-helper: natpmp initialized...\n");