From 2043127f22bcd33df3bf63c36360ad39460c391d Mon Sep 17 00:00:00 2001 From: "roberto@precise64" Date: Mon, 19 Mar 2012 07:29:39 +0100 Subject: [PATCH] fixed snmp support --- snmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snmp.c b/snmp.c index 50faa822..1cb27b51 100644 --- a/snmp.c +++ b/snmp.c @@ -354,8 +354,8 @@ static int get_snmp_integer(uint8_t * ptr, uint64_t * val) { void uwsgi_opt_snmp(char *opt, char *value, void *foobar) { uwsgi.snmp = 1; if (value) { - uwsgi.snmp_addr = optarg; - uwsgi.master_process = 1; + uwsgi.snmp_addr = value; + uwsgi.master_process = 1; } }