Bug #1995 » 0001-osmo_ss7-Fix-segfault-when-routing-MTP-TRANSFER.req-.patch
src/osmo_ss7.c | ||
---|---|---|
1376 | 1376 |
OSMO_ASSERT(0); |
1377 | 1377 |
} |
1378 | 1378 | |
1379 |
if (asp->cfg.is_server) |
|
1379 |
if (asp->cfg.is_server) { |
|
1380 |
if (!asp->server) { |
|
1381 |
LOGPASP(asp, DLSS7, LOGL_ERROR, "Cannot transmit, no asp->server\n"); |
|
1382 |
/* FIXME: what to do here? delete the route? send DUNA? */ |
|
1383 |
return -EIO; |
|
1384 |
} |
|
1380 | 1385 |
osmo_stream_srv_send(asp->server, msg); |
1381 |
else |
|
1386 |
} else { |
|
1387 |
if (!asp->client) { |
|
1388 |
LOGPASP(asp, DLSS7, LOGL_ERROR, "Cannot transmit, no asp->client\n"); |
|
1389 |
/* FIXME: what to do here? delete the route? send DUNA? */ |
|
1390 |
return -EIO; |
|
1391 |
} |
|
1382 | 1392 |
osmo_stream_cli_send(asp->client, msg); |
1393 |
} |
|
1383 | 1394 | |
1384 | 1395 |
return 0; |
1385 | 1396 |
} |
- « Previous
- 1
- …
- 4
- 5
- 6
- Next »