aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teirney <david@teirney.net>2012-06-12 22:54:05 +1200
committerDavid Teirney <david@teirney.net>2012-06-19 20:55:19 +1200
commit0b77992cee352799004ec01b0d0dde0acb7f735e (patch)
tree0225583d7281c6b6b197c1bb9abfae5c863c3b77
parent1186e91dded0fa4b19f0ce32668476afed61538d (diff)
Fix so that the IP address mapping from the backend is correctly identified as being missing if "-1" is returned.
-rw-r--r--lib/cmyth/libcmyth/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cmyth/libcmyth/connection.c b/lib/cmyth/libcmyth/connection.c
index a5772758f1..6ff1d2da39 100644
--- a/lib/cmyth/libcmyth/connection.c
+++ b/lib/cmyth/libcmyth/connection.c
@@ -564,6 +564,10 @@ cmyth_conn_connect_file(cmyth_proginfo_t prog, cmyth_conn_t control,
if (control->conn_version >= 17) {
myth_host = cmyth_conn_get_setting_unlocked(control, prog->proginfo_host,
"BackendServerIP");
+ if (myth_host && (strcmp(myth_host, "-1") == 0)) {
+ ref_release(myth_host);
+ myth_host = NULL;
+ }
}
if (!myth_host) {
cmyth_dbg(CMYTH_DBG_PROTO,