[server] fixed copy-and-paste NULL check bug found by Coverity
authorMichael Rash <mbr@cipherdyne.org>
Mon, 13 Jan 2014 02:08:55 +0000 (21:08 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Mon, 13 Jan 2014 02:08:55 +0000 (21:08 -0500)
server/access.c

index d504a3d..be7859b 100644 (file)
@@ -705,7 +705,7 @@ free_acc_stanza_data(acc_stanza_t *acc)
     if(acc->force_nat_ip != NULL)
         free(acc->force_nat_ip);
 
-    if(acc->force_nat_ip != NULL)
+    if(acc->force_snat_ip != NULL)
         free(acc->force_snat_ip);
 
     if(acc->key != NULL)