From 62815307269a63dfc13fbdc5faa1933620d6ab6e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 4 Dec 2011 23:15:13 -0500 Subject: [PATCH] afs: prevent nat pings on destroyed connections If the connection is no longer in use, reset the nat keep alive timer to 0 seconds. Reviewed-on: http://gerrit.openafs.org/6230 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 7a93c827f353e2ad695d8019ab789b02a3596f2e) Change-Id: I019bdce7a8f9f0123786b46d0563f42f7b26c14b Reviewed-on: http://gerrit.openafs.org/6232 Tested-by: BuildBot Tested-by: Stephan Wiesand Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_conn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afs/afs_conn.c b/src/afs/afs_conn.c index d9173dbb2..e4cba32dc 100644 --- a/src/afs/afs_conn.c +++ b/src/afs/afs_conn.c @@ -276,6 +276,7 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell, csec = (struct rx_securityClass *)0; if (tc->id) { AFS_GUNLOCK(); + rx_SetConnSecondsUntilNatPing(tc->id, 0); rx_DestroyConnection(tc->id); AFS_GLOCK(); } -- 2.39.5