Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0414-erl_interface-Remove-broken-undoc-feature-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0414-erl_interface-Remove-broken-undoc-feature-in-ei_conn.patch of Package erlang
From 2287099837aa4a50aab58caa820c490ea97c3df7 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Mon, 8 Feb 2021 19:03:59 +0100 Subject: [PATCH 14/34] erl_interface: Remove broken undoc feature in ei_connect_init Argument this_node_name as NULL did not work as it would lead to strlen(NULL) being called. --- lib/erl_interface/src/connect/ei_connect.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c index e5d6f37c60..4adba7a6a6 100644 --- a/lib/erl_interface/src/connect/ei_connect.c +++ b/lib/erl_interface/src/connect/ei_connect.c @@ -1029,9 +1029,7 @@ int ei_connect_init_ussi(ei_cnode* ec, const char* this_node_name, return ERL_ERROR; } - if (this_node_name == NULL) { - sprintf(thisalivename, "c%d", (int) getpid()); - } else if (strlen(this_node_name) >= sizeof(thisalivename)) { + if (strlen(this_node_name) >= sizeof(thisalivename)) { EI_TRACE_ERR0("ei_connect_init","ERROR: this_node_name too long"); return ERL_ERROR; } else { -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor