Skip to content

Commit

Permalink
Merge pull request #705 from WojciechMigda/FIX-snmp-integer-varbind
Browse files Browse the repository at this point in the history
Fix printing SNMP Integer varbind into banner
  • Loading branch information
robertdavidgraham authored Nov 1, 2023
2 parents 01fbafc + b94ce8f commit 731a485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto-snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ snmp_banner(const unsigned char *oid, size_t oid_length,
uint64_t result = 0;
for (i=0; i<var_length; i++)
result = result<<8 | var[i];
sprintf_s(foo, sizeof(foo), "%" PRIu64 "", (uint64_t)(size_t)foo);
sprintf_s(foo, sizeof(foo), "%" PRIu64 "", result);
banout_append(banout, PROTO_SNMP, foo, strlen(foo));
}
break;
Expand Down

0 comments on commit 731a485

Please sign in to comment.