kdig: fix segfault if bad key format (redundant dname free)

refs #2137

Change-Id: I983291e35d76531cd82c7feb7467cd8fbe0cbbf7
khost: remove unsupported C parameter from the processing

refs #2137

Change-Id: Ibccdf2203e79fd2b9f24e75d54bfedc1eed605c0