[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17487 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17487 - gnunet/src/ats |
Date: |
Fri, 14 Oct 2011 11:39:11 +0200 |
Author: grothoff
Date: 2011-10-14 11:39:11 +0200 (Fri, 14 Oct 2011)
New Revision: 17487
Modified:
gnunet/src/ats/ats_api_performance.c
Log:
use after free
Modified: gnunet/src/ats/ats_api_performance.c
===================================================================
--- gnunet/src/ats/ats_api_performance.c 2011-10-14 09:32:14 UTC (rev
17486)
+++ gnunet/src/ats/ats_api_performance.c 2011-10-14 09:39:11 UTC (rev
17487)
@@ -346,10 +346,13 @@
GNUNET_free (rc);
return GNUNET_OK;
}
- GNUNET_free (rc);
/* amount non-zero, but client cancelled, consider undo! */
if (GNUNET_YES != rc->undo)
+ {
+ GNUNET_free (rc);
return GNUNET_OK; /* do not try to undo failed undos or negative amounts */
+ }
+ GNUNET_free (rc);
(void) GNUNET_ATS_reserve_bandwidth (ph, &rr->peer, -amount, NULL, NULL);
return GNUNET_OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17487 - gnunet/src/ats,
gnunet <=