Skip to content

Commit

Permalink
Set a missing userinfo to public only for snmp: uris.
Browse files Browse the repository at this point in the history
  • Loading branch information
schoenw committed Apr 10, 2014
1 parent 0435060 commit ee3be7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ gnet_snmp_parse_uri(const gchar *uri_string, GError **error)
"", NULL, NULL);
}

if (uri && !uri->userinfo) {
if (uri && strcmp(uri->scheme, "snmp") == 0 && !uri->userinfo) {
gnet_uri_set_userinfo(uri, "public");
}

Expand Down

0 comments on commit ee3be7e

Please sign in to comment.