Skip to content

Commit

Permalink
msProjectCreateReprojector() PROJ < 6 case: avoid potential crash in …
Browse files Browse the repository at this point in the history
…later calls (related to next commit)
  • Loading branch information
rouault committed Dec 28, 2021
1 parent 548ed82 commit f26672a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mapproject.c
Expand Up @@ -559,6 +559,12 @@ reprojectionObj* msProjectCreateReprojector(projectionObj* in, projectionObj* ou
{
obj->no_op = MS_TRUE;
}
else if( (in == NULL || in->proj == NULL) &&
(out == NULL || out->proj == NULL) )
{
msProjectDestroyReprojector(obj);
return NULL;
}
return obj;
}

Expand Down

0 comments on commit f26672a

Please sign in to comment.