OPENDNSSEC-358 and  OPENDNSSEC-457

code review.(ksmutil.c)
(1) OPENDNSSEC-358
(2) OPENDNSSEC-457