1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-lib_rpcChannel_rpcChannel.c,v 1.2 2021/12/07 18:25:46 adam Exp $
--- lib/rpcChannel/rpcChannel.c.orig 2021-08-31 09:03:11.000000000 +0000
+++ lib/rpcChannel/rpcChannel.c
@@ -308,7 +308,11 @@ RpcChannelXdrWrapper(RpcInData *data,
goto exit;
}
+#if defined(__NetBSD__)
+ if (!xdrProc(&xdrs, copy.result)) {
+#else
if (!xdrProc(&xdrs, copy.result, 0)) {
+#endif
ret = RPCIN_SETRETVALS(data, "XDR serialization failed.", FALSE);
/*
@@ -378,7 +382,11 @@ RpcChannel_BuildXdrCommand(const char *c
goto exit;
}
+#if defined(__NetBSD__)
+ if (!proc(&xdrs, xdrData)) {
+#else
if (!proc(&xdrs, xdrData, 0)) {
+#endif
goto exit;
}
|