]> granicus.if.org Git - libtirpc/commitdiff
svc_getcaller_netbuf macro seems broken
authorOlaf Kirch <okir@suse.de>
Tue, 30 Sep 2008 19:08:07 +0000 (15:08 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 30 Sep 2008 19:08:07 +0000 (15:08 -0400)
I haven't found any documentation, but the comment in the header
file seems to suggest that svc_getcaller_netbuf should return the
xp_rtaddr netbuf. Returning the address of the socket descripor
seems to be wrong at any rate.

Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
tirpc/rpc/svc_soc.h

index a8aabf3383af91bfaa383a53c2432a1903f1b6a2..0dc96e25f46f805ba2e1f8e123bba18762b76467 100644 (file)
@@ -54,7 +54,7 @@
  */
 #define svc_getcaller(x) (&(x)->xp_raddr)
 /* Getting address of a caller using netbuf xp_rtaddr */ 
-#define svc_getcaller_netbuf(x) (&(x)->xp_fd)
+#define svc_getcaller_netbuf(x) (&(x)->xp_rtaddr)
 /*
  * Service registration
  *