Change in openvpn[master]: pool: Fix a potential NULL pointer de-reference in test code
A message that is not in the archive (sent off-list or not yet received): gerrit.1778239616000.I09ebbf6f3555dd68ce8d75bfa844ecac518a0cf2@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1676?usp=email
to review the following change.
Change subject: pool: Fix a potential NULL pointer de-reference in test code
......................................................................
pool: Fix a potential NULL pointer de-reference in test code
Identified by cppcheck. Probably has been a long time since that code has been compiled, though.
---
M src/openvpn/pool.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/76/1676/1
src/openvpn/pool.c +2 -2
@@ -757,7 +757,7 @@break ; }msg (M_INFO |M_NOPREFIX ,"IFCONFIG_POOL TEST pass 1: l=%s r=%s cn=%s" , -print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn); +print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn ? cn :"[NULL]" ); array[i] = h; }
@@ -793,7 +793,7 @@break ; }msg (M_INFO |M_NOPREFIX ,"IFCONFIG_POOL TEST pass 3: l=%s r=%s cn=%s" , -print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn); +print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn ? cn :"[NULL]" ); array[i] = h; }
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1676?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I09ebbf6f3555dd68ce8d75bfa844ecac518a0cf2
Gerrit-Change-Number: 1676
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1676?usp=email )
Change subject: pool: Fix a potential NULL pointer de-reference in test code
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1676?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I09ebbf6f3555dd68ce8d75bfa844ecac518a0cf2
Gerrit-Change-Number: 1676
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Fri, 08 May 2026 15:31:43 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 pool: Fix a potential NULL pointer de-reference in test code
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
Identified by cppcheck. Probably has been a long time since that code has been compiled, though.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1676
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1676
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/pool.c +2 -2
@@ -757,7 +757,7 @@break ; }msg (M_INFO |M_NOPREFIX ,"IFCONFIG_POOL TEST pass 1: l=%s r=%s cn=%s" , -print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn); +print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn ? cn :"[NULL]" ); array[i] = h; }
@@ -793,7 +793,7 @@break ; }msg (M_INFO |M_NOPREFIX ,"IFCONFIG_POOL TEST pass 3: l=%s r=%s cn=%s" , -print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn); +print_in_addr_t (local,0 , &gc),print_in_addr_t (remote,0 , &gc), cn ? cn :"[NULL]" ); array[i] = h; }