commit e32788429f6cf0fd61336ed3eadccfc59f17dbbc from: Omar Polo date: Mon Dec 26 18:10:15 2022 UTC iri: copy portstr too commit - 69942b73fa48871099028f5c6370c4493d3691cb commit + e32788429f6cf0fd61336ed3eadccfc59f17dbbc blob - 2adbaf8ce87337515f25d8beb7afc72026b4dea9 blob + 046848e626273d061952da0aa96cc7a0545ee61a --- iri.c +++ iri.c @@ -481,6 +481,8 @@ cpfields(struct iri *dest, const struct iri *src, int if (flags & IH_PORT) { if (src->iri_flags & IH_PORT) { dest->iri_port = src->iri_port; + memcpy(dest->iri_portstr, src->iri_portstr, + sizeof(dest->iri_portstr)); dest->iri_flags |= IH_PORT; } }