Skip to content

Commit fa776ad

Browse files
committed
Small fixes for snmp agent.
1 parent 9af7ec8 commit fa776ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ clean: mclean lclean
4141
-rm -f *.so *.o modules.order version.h
4242

4343
snmp_NETFLOW.so: snmp_NETFLOW.c
44-
$(CC) `net-snmp-config --cflags` -fPIC -shared -g -O0 -o $@ $< `net-snmp-config --libs`
44+
$(CC) `net-snmp-config --cflags` -fPIC -shared -o $@ $< `net-snmp-config --libs`
4545

4646
sinstall: | snmp_NETFLOW.so IPT-NETFLOW-MIB.my
4747
@echo " *"

snmp_NETFLOW.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ static int iptNetflowModule_handler(
296296
struct snmp_vars *sys;
297297
oid obj;
298298
char buf[225];
299-
char *p;
299+
char *p = NULL;
300300
long value;
301301

302302
obj = request->requestvb->name[request->requestvb->name_length - 2];

0 commit comments

Comments
 (0)