mirror of
https://github.com/xroche/httrack.git
synced 2026-05-17 08:26:14 +03:00
Fixed NULL pointer dereferencing in back_unserialize (htsback.c:976) spotted on Android platforms
This commit is contained in:
@@ -971,9 +971,10 @@ int back_unserialize(FILE * fp, lien_back ** dst) {
|
||||
if ((*dst)->r.adr != NULL)
|
||||
freet((*dst)->r.adr);
|
||||
}
|
||||
if (dst != NULL)
|
||||
freet(dst);
|
||||
*dst = NULL;
|
||||
if (dst != NULL) {
|
||||
freet(*dst);
|
||||
*dst = NULL;
|
||||
}
|
||||
return 1; /* error */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user