Red Hat Bugzilla – Bug 134282
ccsd allows ports to be given as chars and then sets them 0
Last modified: 2010-01-11 21:59:25 EST
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
[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
Updating version to the right level in the defects. Sorry for the storm.