From: Andrew Deason Date: Thu, 12 May 2011 15:21:09 +0000 (-0500) Subject: viced: h_SetupCallbackConn_r in removeAddress_r X-Git-Tag: upstream/1.8.0_pre1^2~3749 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0376255747ac17ed41afbc219f5a5978e58d8e9c;p=packages%2Fo%2Fopenafs.git viced: h_SetupCallbackConn_r in removeAddress_r removeAddress_r has some code that is identical to the h_SetupCallbackConn_r function. Call the function instead. Change-Id: I3416dd1b5c94f0e836c2461771389045994e7152 Reviewed-on: http://gerrit.openafs.org/4645 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear --- diff --git a/src/viced/host.c b/src/viced/host.c index 37427eedb..55daa8ea8 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1311,12 +1311,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 */