]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
viced: h_SetupCallbackConn_r in removeAddress_r
authorAndrew Deason <adeason@sinenomine.net>
Thu, 12 May 2011 15:21:09 +0000 (10:21 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 29 Aug 2013 07:59:09 +0000 (00:59 -0700)
removeAddress_r has some code that is identical to the
h_SetupCallbackConn_r function. Call the function instead.

Reviewed-on: http://gerrit.openafs.org/4645
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 0376255747ac17ed41afbc219f5a5978e58d8e9c)

Change-Id: I9f7b4fbc6059a15b30d675a7c78ac9ff00ba32b0
Reviewed-on: http://gerrit.openafs.org/9419
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/viced/host.c

index 5e4739d60798f5e3f3fbe5947f46c2a086c889eb..1bfe477e46ea9f2add6c3f49cf2af66d7aa2b542 100644 (file)
@@ -1340,12 +1340,7 @@ removeAddress_r(struct host *host, afs_uint32 addr, afs_uint16 port)
                     rxconn = NULL;
                 }
 
-                if (!sc)
-                    sc = rxnull_NewClientSecurityObject();
-                host->callback_rxcon =
-                    rx_NewConnection(host->host, host->port, 1, sc, 0);
-                rx_SetConnDeadTime(host->callback_rxcon, 50);
-                rx_SetConnHardDeadTime(host->callback_rxcon, AFS_HARDDEADTIME);
+               h_SetupCallbackConn_r(host);
             }
         } else {
             /* not the primary addr/port, just invalidate it */