File nagios-3.2.1-delete_correct_comment.patch of Package nagios
Index: common/comments.c =================================================================== --- common/comments.c.orig +++ common/comments.c @@ -200,7 +200,10 @@ if(last_hash) last_hash->nexthash=this_hash->nexthash; else - comment_hashlist[hashslot]=NULL; + if(this_hash->nexthash) + comment_hashlist[hashslot]=this_hash->nexthash; + else + comment_hashlist[hashslot]=NULL; break; } last_hash=this_hash;