diff options
-rw-r--r-- | net/tipc/subscr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 69ee2eeef968..f9ff73a8d815 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -296,7 +296,8 @@ static void tipc_subscrb_rcv_cb(struct net *net, int conid, | |||
296 | if (tipc_subscrp_create(net, (struct tipc_subscr *)buf, subscrb, &sub)) | 296 | if (tipc_subscrp_create(net, (struct tipc_subscr *)buf, subscrb, &sub)) |
297 | return tipc_conn_terminate(tn->topsrv, subscrb->conid); | 297 | return tipc_conn_terminate(tn->topsrv, subscrb->conid); |
298 | 298 | ||
299 | tipc_nametbl_subscribe(sub); | 299 | if (sub) |
300 | tipc_nametbl_subscribe(sub); | ||
300 | } | 301 | } |
301 | 302 | ||
302 | /* Handle one request to establish a new subscriber */ | 303 | /* Handle one request to establish a new subscriber */ |