File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ constexpr uint8_t NATPMP_RESULT_UNSUPP_VERSION = 1;
84
84
constexpr uint8_t NATPMP_RESULT_NO_RESOURCES = 4 ;
85
85
86
86
// ! Mapping of NATPMP result code to string (RFC6886 3.5). Result codes <=2 match PCP.
87
- const std::map<uint8_t , std::string> NATPMP_RESULT_STR{
87
+ const std::map<uint16_t , std::string> NATPMP_RESULT_STR{
88
88
{0 , " SUCCESS" },
89
89
{1 , " UNSUPP_VERSION" },
90
90
{2 , " NOT_AUTHORIZED" },
@@ -165,7 +165,7 @@ const std::map<uint8_t, std::string> PCP_RESULT_STR{
165
165
};
166
166
167
167
// ! Return human-readable string from NATPMP result code.
168
- std::string NATPMPResultString (uint8_t result_code)
168
+ std::string NATPMPResultString (uint16_t result_code)
169
169
{
170
170
auto result_i = NATPMP_RESULT_STR.find (result_code);
171
171
return strprintf (" %s (code %d)" , result_i == NATPMP_RESULT_STR.end () ? " (unknown)" : result_i->second , result_code);
You can’t perform that action at this time.
0 commit comments