aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_performance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-13 00:11:53 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-13 00:11:53 +0000
commit3e693f3ceb1b3425b17900423628aecb609f2433 (patch)
tree2dd5d5694771de9458eb8c394ce704dea1d0c87e /src/ats/gnunet-service-ats_performance.c
parentc1fa22fd40d14035c8d323cb4ae8724970850e73 (diff)
downloadgnunet-3e693f3ceb1b3425b17900423628aecb609f2433.tar.gz
gnunet-3e693f3ceb1b3425b17900423628aecb609f2433.zip
-fixing misc minor bugs and style issues (unchecked return values, memory leaks, dead code
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r--src/ats/gnunet-service-ats_performance.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c
index 57e4e98ff..00b5de51c 100644
--- a/src/ats/gnunet-service-ats_performance.c
+++ b/src/ats/gnunet-service-ats_performance.c
@@ -76,6 +76,7 @@ notify_client (struct GNUNET_SERVER_Client *client,
76 plugin_addr_len + 76 plugin_addr_len +
77 plugin_name_length; 77 plugin_name_length;
78 char buf[msize] GNUNET_ALIGN; 78 char buf[msize] GNUNET_ALIGN;
79 struct GNUNET_SERVER_NotificationContext **uc;
79 struct GNUNET_SERVER_NotificationContext *nc; 80 struct GNUNET_SERVER_NotificationContext *nc;
80 char *addrp; 81 char *addrp;
81 82
@@ -108,13 +109,14 @@ notify_client (struct GNUNET_SERVER_Client *client,
108 } 109 }
109 else 110 else
110 { 111 {
111 nc = *GNUNET_SERVER_client_get_user_context (client, 112 uc = GNUNET_SERVER_client_get_user_context (client,
112 struct GNUNET_SERVER_NotificationContext *); 113 struct GNUNET_SERVER_NotificationContext *);
113 if (NULL == nc) 114 if (NULL == uc)
114 { 115 {
115 GNUNET_break (0); 116 GNUNET_break (0);
116 return; 117 return;
117 } 118 }
119 nc = *uc;
118 GNUNET_SERVER_notification_context_unicast (nc, 120 GNUNET_SERVER_notification_context_unicast (nc,
119 client, 121 client,
120 &msg->header, 122 &msg->header,