Skip to content

Commit

Permalink
Get the oid also in the result for the snmp cmd wrapper
Browse files Browse the repository at this point in the history
Now, also the oid is get with name.
  • Loading branch information
jjnicola committed Mar 9, 2022
1 parent 4614a4d commit 1fce6eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nasl/nasl_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ snmpv1v2c_get (const snmpv1v2_request_t request, snmp_result_t result)

argv[0] = (request->action == NASL_SNMP_GET) ? "snmpget" : "snmpgetnext";
argv[1] = (request->version == SNMP_VERSION_1) ? "-v1" : "-v2c";
argv[2] = "-Oqv";
argv[2] = "-Oqn";
argv[3] = "-c";
argv[4] = g_strdup (request->community);
argv[5] = g_strdup (request->peername);
Expand Down Expand Up @@ -541,7 +541,7 @@ snmpv3_get (const snmpv3_request_t request, snmp_result_t result)

argv[0] = (request->action == NASL_SNMP_GET) ? "snmpget" : "snmpgetnext";
argv[1] = "-v3";
argv[2] = "-Oqv";
argv[2] = "-Oqn";
argv[3] = "-u";
argv[4] = g_strdup (request->username);
argv[5] = "-A";
Expand Down

0 comments on commit 1fce6eb

Please sign in to comment.