another hlr.dat corruption catch

This commit is contained in:
gardners 2011-10-02 21:32:01 +10:30
parent 5778e9d016
commit 80f5f5f834

View File

@ -264,7 +264,7 @@ struct hlrentry_handle *openhlrentry(unsigned char *hlr,int hofs)
int record_length=hlrGetRecordLength(hlr,hofs);
/* If record has zero length, then open fails */
if (!record_length)
if (record_length<1)
{
if (debug>2) fprintf(stderr,"HLR record is zero length -- aborting.\n");
return NULL;