mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 01:42:18 +00:00
another hlr.dat corruption catch
This commit is contained in:
parent
5778e9d016
commit
80f5f5f834
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user