Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nat64 port change observing #90

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

anikitin-intermedia
Copy link
Collaborator

No description provided.

));
sip_uri->host.slen = acc.in4_addr.slen;
sip_uri->host.ptr = acc.in4_addr.ptr;
if (acc.in4_port > 0) {
if (acc.in4_port != INVALID_PORT) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The check isn't equivalent to previous one, now zero is valid value. Is it ok?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OK, because acc.in4_port initializes with INVALID_PORT, and then updates only with values more than 0

));
/* Step 2. Update HPBX server addr value */
pj_strdup_with_null(mod_pool, &hpbx.in4_addr, addr);
/* Step 3. Mark update */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: CO  comments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it as is, because the author of this code is not me

@anikitin-intermedia anikitin-intermedia merged commit 65200c0 into release/im-2.14.1 Jul 24, 2024
12 of 30 checks passed
@anikitin-intermedia anikitin-intermedia deleted the bugfix/APPS-19065 branch July 24, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants