Skip to content

Commit 91731ce

Browse files
committed
Avoid crash when geometry function lookup fails
1 parent e22a6f9 commit 91731ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ogr_fdw.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,9 @@ ogrLookupGeometryFunctionOid(const char* proname)
15471547
#else
15481548
clist = FuncnameGetCandidates(names, -1, NIL, false, false, false, false);
15491549
#endif
1550+
1551+
if (!clist) return InvalidOid;
1552+
15501553
if (streq(proname, "st_setsrid"))
15511554
{
15521555
do

0 commit comments

Comments
 (0)