Project

General

Profile

0001-osmo_ss7-Fix-segfault-when-routing-MTP-TRANSFER.req-.patch

laforge, 04/07/2017 05:22 PM

View differences:

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
}
1386
- 
Add picture from clipboard (Maximum size: 48.8 MB)