Bug 134282 - ccsd allows ports to be given as chars and then sets them 0
ccsd allows ports to be given as chars and then sets them 0
Status: CLOSED CURRENTRELEASE
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: gfs (Show other bugs)
4
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jonathan Earl Brassow
GFS Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-30 17:11 EDT by Corey Marthaler
Modified: 2010-01-11 21:59 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-10-27 14:57:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Corey Marthaler 2004-09-30 17:11:55 EDT
Description of problem:
I passed into ccs ports which were characters to see what would happen
and ccs then turns all chars to 0 somehow with the atoi function.  
This is bad because it allow ccs to run and appear alright
however any connection attempt will hang.   

I added debugging to ccsd.c to see what the args were before and after
the atoi function:

[root@morph-03 daemon]# ccsd -P c:H -P b:V -P f:J
cluster_base_port=H
cluster_base_port=0
backend_port=V
backend_port=0
frontend_port=J
frontend_port=0

[root@morph-03 daemon]# ps -ef | grep ccsd
root     11656     1  0 15:36 ?        00:00:00 ccsd -P c:H -P b:V -P f:J

[root@morph-03 daemon]#  ccs_test connect
<hangs>

How reproducible:
Always
Comment 1 Jonathan Earl Brassow 2004-10-14 18:04:09 EDT
Fixed
Comment 2 Corey Marthaler 2004-10-27 14:57:45 EDT
fix verified.
Comment 3 Kiersten (Kerri) Anderson 2004-11-16 14:03:10 EST
Updating version to the right level in the defects.  Sorry for the storm.

Note You need to log in before you can comment on or make changes to this bug.