Permalink
Browse files

test for msHTTPAuthProxySetup() return value against MS_SUCCESS

  • Loading branch information...
1 parent 35708af commit 40dafdc749d1e91ca6f046e462f109f703eef165 @landryb landryb committed Jul 22, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 mapwfslayer.c
  2. +1 −1 mapwmslayer.c
View
@@ -620,7 +620,7 @@ int msPrepareWFSLayerRequest(int nLayerId, mapObj *map, layerObj *lp,
pasReqInfo[(*numRequests)].debug = lp->debug;
if (msHTTPAuthProxySetup(&(map->web.metadata), &(lp->metadata),
- pasReqInfo, *numRequests, map, "FO"))
+ pasReqInfo, *numRequests, map, "FO") != MS_SUCCESS)
return MS_FAILURE;
/* ------------------------------------------------------------------
View
@@ -1170,7 +1170,7 @@ int msPrepareWMSLayerRequest(int nLayerId, mapObj *map, layerObj *lp,
pasReqInfo[(*numRequests)].debug = lp->debug;
if (msHTTPAuthProxySetup(&(map->web.metadata), &(lp->metadata),
- pasReqInfo, *numRequests, map, "MO"))
+ pasReqInfo, *numRequests, map, "MO") != MS_SUCCESS)
return MS_FAILURE;
(*numRequests)++;

0 comments on commit 40dafdc

Please sign in to comment.