summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2015-12-23 16:46:46 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2015-12-23 16:47:02 +0900
commit4148b5c29e543510ab5b4cd990547d161ea3ccb5 (patch)
tree18fb169a11e89d23e4c36bba26f53c94759b19be
parent4066d5269a0ce81ef14d77f905fac9b558e57ca0 (diff)
downloadlibsoup-4148b5c29e543510ab5b4cd990547d161ea3ccb5.tar.gz
libsoup-4148b5c29e543510ab5b4cd990547d161ea3ccb5.tar.bz2
libsoup-4148b5c29e543510ab5b4cd990547d161ea3ccb5.zip
Change-Id: I14ccd3fde1dcc16b87c4f850cff0525ed719ed9a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rw-r--r--libsoup/soup-auth-manager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsoup/soup-auth-manager.c b/libsoup/soup-auth-manager.c
index f40a9282..41938b03 100644
--- a/libsoup/soup-auth-manager.c
+++ b/libsoup/soup-auth-manager.c
@@ -453,6 +453,12 @@ lookup_auth (SoupAuthManagerPrivate *priv, SoupMessage *msg)
path = soup_message_get_uri (msg)->path;
if (!path)
path = "/";
+
+#if ENABLE(TIZEN_EXT)
+ if (!host->auth_realms)
+ return NULL;
+#endif
+
realm = soup_path_map_lookup (host->auth_realms, path);
if (realm)
return g_hash_table_lookup (host->auths, realm);