dtable bug fixed: list overrun (from NetBSD tree)

This commit is contained in:
Alexandre Dulaunoy 2015-02-14 14:50:39 +01:00
parent ac8ca39406
commit 2c9003f0cf

View file

@ -209,7 +209,7 @@ int ssl_decode_switch(ssl,dtable,value,dir,seg,data)
segment *seg;
Data *data;
{
while(dtable && dtable->type!=-1){
while(dtable && dtable->type!=-1 && dtable->name!=NULL){
if(dtable->type == value){
INDENT_INCR;
explain(ssl,"%s",dtable->name);