GFS: replay implementation_version from backend
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 22 Nov 2012 08:54:49 +0000 (09:54 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 22 Nov 2012 08:54:49 +0000 (09:54 +0100)
From 3.0.40 and later, implementation_version from backend was
not used in init response at all.

src/seshigh.c

index bc16416..2555823 100644 (file)
@@ -2322,6 +2322,10 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb)
                 assoc->init->implementation_id,
                 resp->implementationId);
 
+    resp->implementationVersion = odr_prepend(assoc->encode,
+                assoc->init->implementation_version,
+                resp->implementationVersion);
+
     resp->implementationName = odr_prepend(assoc->encode,
                 assoc->init->implementation_name,
                 odr_prepend(assoc->encode, "GFS", resp->implementationName));