elementary fixes of WS NotifNew
authorAleš Křenek <ljocha@ics.muni.cz>
Wed, 22 Apr 2009 12:06:56 +0000 (12:06 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Wed, 22 Apr 2009 12:06:56 +0000 (12:06 +0000)
org.glite.lb.server/src/ws_query.c
org.glite.lb.server/src/ws_typeref.c.T

index 754950e..f0b4ba0 100644 (file)
@@ -286,7 +286,8 @@ SOAP_FMAC5 int SOAP_FMAC6 __lb__NotifNew(
                goto cleanup;
        }
 
-       if (edg_wll_NotifNewServer(ctx,conditions,flags,in->addressOverride,nid,&out->valid)) {
+       out->valid = in->valid ? *in->valid : 0;
+       if (edg_wll_NotifNewServer(ctx,conditions,flags,in->destination,nid,&out->valid)) {
                edg_wll_ErrToFault(ctx, soap);
                ret = SOAP_FAULT;
                goto cleanup;
index 7382d96..b07cbb5 100644 (file)
@@ -664,7 +664,7 @@ int edg_wll_SoapToQueryCondsExt(GLITE_SECURITY_GSOAP_LIST_TYPE(lbt, queryConditi
 
        assert(out);
        if ( !(qr = calloc(__sizecondition + 1, sizeof(*qr))) ) return -1;
-       for ( i = 0; i < __sizecondition; i++ )
+       for ( i = 0; i < __sizecondition && GLITE_SECURITY_GSOAP_LIST_GET(in, i); i++ )
                if ( edg_wll_SoapToQueryConds(GLITE_SECURITY_GSOAP_LIST_GET(in, i), qr+i) ) goto err;
 
        *out = qr;