aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2011-06-19 02:31:13 -0700
committerRoger Dingledine <arma@torproject.org>2011-06-20 20:01:46 -0400
commit8b0d9452ca2053bbfba60750d169aaf52037cfcd (patch)
treed191e6101621f5b114db1e724d87dbb5f6352a1c /src
parent8653f31d8d534282795acb54ee500ef7d42d3a32 (diff)
downloadtor-8b0d9452ca2053bbfba60750d169aaf52037cfcd.tar
tor-8b0d9452ca2053bbfba60750d169aaf52037cfcd.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/tools/tor-fw-helper/tor-fw-helper-natpmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c b/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c
index 2630b8f5e..f9d5d0d58 100644
--- a/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c
+++ b/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c
@@ -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");