Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#9 closed defect (fixed)

Use of uninitialized value in string eq at /usr/bin/shelldap line 1470 for hasSubordinate attribute

Reported by: carnil Owned by: mahlon
Priority: minor Milestone:
Version: Keywords:



In Debian there was reported that shelldap may trow out 'uninitalized value' warnings on comparison if hasSubordinate is TRUE [1].

(line 1470 is not true in original shelldap, and comes as shelldap in Debian has already the patch applied for ticket #8)


# if this entry is a container for other entries, append a
# trailing slash.
if ( $e->get_value('hasSubordinates') eq 'TRUE' ) {

$dn .= '/';


According to [2] the attibute can be either TRUE, or FALSE or the third case could be that the attribute is absent.


Should thus this first check if attribute is present, and then only compare the value?


Change History (4)

comment:1 Changed 4 years ago by carnil

  • Priority changed from major to minor

comment:2 Changed 4 years ago by mahlon

  • Owner set to mahlon
  • Status changed from new to accepted

Hello, Salvatore!

I'm sitting on more than a couple patches that I need to get committed. I'll include a fix for this issue in the next milestone.


comment:3 Changed 4 years ago by mahlon

  • Resolution set to fixed
  • Status changed from accepted to closed

Fix committed. Thanks again.

comment:4 Changed 3 years ago by mahlon

  • Milestone 0.4 deleted

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.