mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
Fix error in osmcallback hook
The callback hook should use the old pointer instead of the new. This causes a segfault when ptr is NULL.
This commit is contained in:
parent
683e2bcf18
commit
887f538cd7
1
.unreleased/PR_6106
Normal file
1
.unreleased/PR_6106
Normal file
@ -0,0 +1 @@
|
||||
Fixes: #6106 incorrect pointer usage in OSM hook callback
|
@ -61,7 +61,7 @@ ts_get_osm_hypertable_drop_hook()
|
||||
{
|
||||
OsmCallbacks *ptr_old = ts_get_osm_callbacks_old();
|
||||
if (ptr_old)
|
||||
return ptr->hypertable_drop_hook;
|
||||
return ptr_old->hypertable_drop_hook;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user