Skip to content

Commit

Permalink
Merge pull request #1665 from Kokan/getent-protocol
Browse files Browse the repository at this point in the history
[getent] protocol number look up by name returns incorrect number
  • Loading branch information
MrAnno committed Sep 13, 2017
2 parents 8aabf43 + a845ac4 commit 59e6024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/getent/getent-protocols.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ tf_getent_protocols(gchar *key, gchar *member_name, GString *result)
if (is_num)
g_string_append(result, res->p_name);
else
g_string_append_printf(result, "%i", htons(res->p_proto));
g_string_append_printf(result, "%d", res->p_proto);

return TRUE;
}

0 comments on commit 59e6024

Please sign in to comment.