multi: relays user info for first rejected target
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 30 Apr 2012 09:39:20 +0000 (11:39 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 30 Apr 2012 10:11:15 +0000 (12:11 +0200)
The other-information field for init response for first rejected target
is in common init response. This ensures that some backend init
diagnostics are returned to the frontend.

src/filter_multi.cpp

index e4bea12..ccdcc4a 100644 (file)
@@ -514,7 +514,12 @@ void yf::Multi::Frontend::init(mp::Package &package, Z_GDU *gdu)
                     maximumRecordSize = *b_resp->maximumRecordSize;
             }
             else
+            {
+                if (!f_resp->userInformationField 
+                    && b_resp->userInformationField)
+                    f_resp->userInformationField = b_resp->userInformationField;
                 no_failed++;
+            }
         }
         else
             no_failed++;