Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 805870a9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm:ipa: Prevent NAT table deletion only if public ip is not assigned"

parents 2e003568 748a57ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -773,7 +773,7 @@ int ipa2_nat_del_cmd(struct ipa_ioc_v4_nat_del *del)
		return -EPERM;
	}

	if (ipa_ctx->nat_mem.public_ip_addr) {
	if (!ipa_ctx->nat_mem.public_ip_addr) {
		IPAERR_RL("Public IP addr not assigned and trying to delete\n");
		return -EPERM;
	}