Commit Diff
- Commit:
e32788429f6cf0fd61336ed3eadccfc59f17dbbc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Mon Dec 26 18:10:15 2022 UTC
- Message:
- iri: copy portstr too
--- 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; } }