File 0621-public_key-replace-size-1-by-XXX_size-1.patch of Package erlang
From a7c7cbb59c74938b56e952169d4c7d304f4f9ee6 Mon Sep 17 00:00:00 2001
From: Kiko Fernandez-Reyes <kiko@erlang.org>
Date: Mon, 16 Jan 2023 10:28:31 +0100
Subject: [PATCH] public_key: replace size/1 by XXX_size/1
---
lib/public_key/src/public_key.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl
index 821e54468e..839276f92f 100644
--- a/lib/public_key/src/public_key.erl
+++ b/lib/public_key/src/public_key.erl
@@ -1934,7 +1934,7 @@ verify_hostname_match_default0({ip,R}, {iPAddress,P}) when length(P) == 4 ->
%% IPv4
try
list_to_tuple(P)
- == if is_tuple(R), size(R)==4 -> R;
+ == if tuple_size(R)==4 -> R;
is_list(R) -> ok(inet:parse_ipv4strict_address(R))
end
catch
@@ -1946,7 +1946,7 @@ verify_hostname_match_default0({ip,R}, {iPAddress,P}) when length(P) == 16 ->
%% IPv6. The length 16 is due to the certificate specification.
try
l16_to_tup(P)
- == if is_tuple(R), size(R)==8 -> R;
+ == if tuple_size(R)==8 -> R;
is_list(R) -> ok(inet:parse_ipv6strict_address(R))
end
catch
--
2.35.3