aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/frame_relay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gb/frame_relay.c')
-rw-r--r--src/gb/frame_relay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gb/frame_relay.c b/src/gb/frame_relay.c
index ae6bbf58..03048827 100644
--- a/src/gb/frame_relay.c
+++ b/src/gb/frame_relay.c
@@ -849,6 +849,8 @@ static void fr_t392_cb(void *data)
struct osmo_fr_network *osmo_fr_network_alloc(void *ctx)
{
struct osmo_fr_network *net = talloc_zero(ctx, struct osmo_fr_network);
+ if (!net)
+ return NULL;
INIT_LLIST_HEAD(&net->links);
net->T_defs = fr_tdefs;