Joshua Colp
01a4f25701
srv: Fix crash when ast_srv_lookup is used and 0 records are returned.
...
When performing an SRV lookup using the ast_srv_lookup function it
did not properly handle the situation where 0 records are returned.
If this happened it would wrongly assume that at least one record
was present.
This change fixes the code so it will exit early if an error occurs
or if 0 records are returned.
ASTERISK-26772
patches:
srv_lookup.patch submitted by nappsoft (license 6822)
Change-Id: I09b19081c74e0ad11c12bf54a257243b1bcb2351
2017-02-07 12:13:49 -06:00
..
2016-06-07 09:32:11 +02:00
2016-06-28 12:40:49 -05:00
2016-03-01 09:30:43 -07:00
2017-01-17 17:08:45 -06:00
2016-12-22 12:24:03 -06:00
2014-05-09 22:49:26 +00:00
2015-04-13 03:48:57 -04:00
2016-10-14 14:15:51 -05:00
2017-01-24 14:04:51 -06:00
2016-07-11 13:51:29 -05:00
2015-04-29 01:02:10 -04:00
2012-07-11 17:16:50 +00:00
2016-07-11 13:51:29 -05:00
2015-05-13 21:55:07 -04:00
2017-01-24 11:25:11 -06:00
2014-04-23 15:02:39 +00:00
2016-05-03 07:56:18 -05:00
2016-06-10 10:13:20 +02:00
2016-01-14 19:57:29 -06:00
2015-04-27 18:37:26 -04:00
2016-10-06 16:20:02 -05:00
2016-10-06 16:20:02 -05:00
2015-04-27 18:37:26 -04:00
2016-10-06 16:20:02 -05:00
2017-01-24 14:15:03 -06:00
2017-02-01 17:56:24 -05:00
2016-03-11 16:05:30 -06:00
2017-02-02 12:38:05 -06:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2016-08-25 17:11:17 -05:00
2016-11-04 15:47:42 -05:00
2015-04-13 03:48:57 -04:00
2016-11-14 15:56:45 -06:00
2015-07-12 20:44:16 -05:00
2008-10-30 16:49:02 +00:00
2016-03-01 20:21:58 -06:00
2016-01-08 21:05:16 -06:00
2016-10-18 17:14:38 -05:00
2016-10-13 18:12:16 -05:00
2017-02-02 12:38:05 -06:00
2017-02-02 12:38:18 -06:00
2016-08-24 11:02:18 -05:00
2016-10-18 03:35:14 -05:00
2016-11-16 14:56:09 -05:00
2016-06-29 09:01:51 -05:00
2016-06-22 12:23:44 -05:00
2016-08-24 11:02:18 -05:00
2016-03-03 14:03:14 -06:00
2016-04-22 15:45:47 -05:00
2015-04-13 03:48:57 -04:00
2012-03-22 19:51:16 +00:00
2015-04-13 03:48:57 -04:00
2016-05-09 10:40:28 -03:00
2015-04-13 03:48:57 -04:00
2016-01-10 17:16:28 -06:00
2016-06-04 11:07:22 -05:00
2016-11-19 17:32:15 -05:00
2016-11-19 17:32:15 -05:00
2015-06-10 18:06:15 -05:00
2015-07-02 08:54:51 -03:00
2016-11-19 17:32:15 -05:00
2015-11-30 10:13:35 -07:00
2015-04-10 13:32:24 +00:00
2015-04-13 03:48:57 -04:00
2016-11-19 17:32:15 -05:00
2015-04-13 03:48:57 -04:00
2016-07-27 11:03:19 -05:00
2012-03-22 19:51:16 +00:00
2015-12-28 11:39:26 -06:00
2015-04-13 03:48:57 -04:00
2015-04-23 11:39:13 -05:00
2016-10-20 06:48:22 -05:00
2016-08-15 07:41:01 -05:00
2016-11-15 21:21:28 -05:00
2017-01-17 17:08:45 -06:00
2017-01-17 17:08:45 -06:00
2016-07-14 15:59:49 -05:00
2016-10-24 17:48:06 -05:00
2017-01-25 13:46:34 -06:00
2015-11-13 09:32:52 +01:00
2017-01-24 14:02:39 -06:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2012-06-15 16:20:16 +00:00
2015-04-17 15:58:07 -05:00
2016-08-24 11:02:18 -05:00
2016-08-24 11:02:18 -05:00
2016-08-19 16:58:45 -05:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2016-09-20 08:12:38 -06:00
2017-01-17 17:08:45 -06:00
2016-11-14 14:00:54 -05:00
2017-01-24 11:25:11 -06:00
2016-11-30 08:09:13 -05:00
2012-01-30 21:21:16 +00:00
2016-10-28 10:24:13 -05:00
2016-09-23 07:53:23 -05:00
2016-10-09 22:28:52 -04:00
2017-01-27 07:17:48 -07:00
2016-11-14 15:56:45 -06:00
2016-10-31 13:52:50 -05:00
2015-05-26 16:47:55 -05:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2017-01-27 15:09:54 -06:00
2015-04-17 15:58:07 -05:00
2015-04-13 03:48:57 -04:00
2016-03-25 10:22:36 -05:00
2014-07-20 22:06:33 +00:00
2016-12-14 11:37:17 -06:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2016-09-02 10:28:01 -04:00
2015-04-13 03:48:57 -04:00
2016-11-01 12:37:22 -05:00
2015-04-13 03:48:57 -04:00
2015-05-04 20:47:01 -04:00
2016-01-04 20:46:25 -05:00
2016-01-04 17:15:14 -05:00
2016-07-28 15:11:20 -05:00
2016-01-05 12:08:40 -05:00
2016-07-18 03:21:43 -04:00
2016-07-15 05:34:29 -04:00
2016-07-21 13:11:52 -05:00
2016-07-21 13:11:52 -05:00
2016-01-04 19:20:35 -05:00
2016-01-04 19:00:23 -05:00
2016-01-04 17:15:14 -05:00
2016-08-29 08:09:32 -04:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2010-09-07 19:09:08 +00:00
2016-09-21 19:24:08 +00:00
2015-04-13 03:48:57 -04:00
2016-11-23 11:15:25 -05:00
2016-06-28 12:40:49 -05:00
2016-03-16 14:22:19 -05:00
2016-08-10 17:32:42 -05:00
2015-04-23 11:39:13 -05:00
2015-04-13 03:48:57 -04:00
2012-09-21 17:14:59 +00:00
2012-10-11 15:49:02 +00:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2016-09-02 10:28:05 -04:00
2015-03-26 22:24:26 +00:00
2017-02-07 12:13:49 -06:00
2016-11-14 15:56:45 -06:00
2015-12-28 11:39:26 -06:00
2015-04-13 03:48:57 -04:00
2017-02-03 16:42:33 -05:00
2016-07-13 15:12:19 -05:00
2016-06-09 10:32:07 -05:00
2016-04-22 15:45:47 -05:00
2016-07-13 09:11:37 -05:00
2016-08-15 07:40:31 -05:00
2013-01-19 20:54:07 +00:00
2016-04-13 14:01:37 -06:00
2017-01-23 10:23:23 -07:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2017-01-13 21:36:05 -06:00
2016-12-02 07:40:50 -06:00
2015-04-13 03:48:57 -04:00
2015-11-25 20:29:55 +01:00
2015-06-24 17:13:31 -05:00
2016-07-13 11:47:56 -05:00
2015-04-13 03:48:57 -04:00
2015-04-13 03:48:57 -04:00
2016-07-13 17:45:27 -05:00
2016-05-18 14:06:09 -05:00
2015-04-13 03:48:57 -04:00
2014-08-21 14:42:12 +00:00
2017-01-26 21:08:54 -06:00
2014-12-17 10:23:32 +00:00
2015-04-13 03:48:57 -04:00
2015-11-06 08:46:24 -05:00