In nm_snmp_open(), call to snmp_open() fails on net-snmp 5.8. Turns out
this is caused by the memset(session, 0, ...) call in
nm_snmp_init_session().
The patch removes nm_snmp_init_session() since it was only used in
nm_snmp_open() and calls snmp_sess_init() instead, which does the same
but also initializes struct member sndMsgMaxSize.
In nm_snmp_open(), call to snmp_open() fails on net-snmp 5.8. Turns out this is caused by the memset(session, 0, ...) call in nm_snmp_init_session().
The patch removes nm_snmp_init_session() since it was only used in nm_snmp_open() and calls snmp_sess_init() instead, which does the same but also initializes struct member sndMsgMaxSize.
I think this should fix issue hleuwer/luasnmp#1