diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-12 12:15:55 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-12 12:15:55 +0000 |
commit | 9c5d82e9631aa2c397c304057e81319fac18e741 (patch) | |
tree | e69d1fd20a731601332f72e3040c69bca57bf4c7 /src/transport/plugin_transport_http.c | |
parent | 3c4fb6c09f579ce894e288dc7a4263827ea33037 (diff) | |
download | gnunet-9c5d82e9631aa2c397c304057e81319fac18e741.tar.gz gnunet-9c5d82e9631aa2c397c304057e81319fac18e741.zip |
fixed coverity bug #10042
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r-- | src/transport/plugin_transport_http.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index fa4cf9d9c..d94740654 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c | |||
@@ -2296,17 +2296,15 @@ http_plugin_send (void *cls, | |||
2296 | if (force_address != GNUNET_YES) | 2296 | if (force_address != GNUNET_YES) |
2297 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"No existing connection: creating new session %X to peer %s\n", ps, GNUNET_i2s(target)); | 2297 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"No existing connection: creating new session %X to peer %s\n", ps, GNUNET_i2s(target)); |
2298 | #endif | 2298 | #endif |
2299 | if ((addrlen!=0) && (addr!=NULL)) | 2299 | ps->addr = GNUNET_malloc(addrlen); |
2300 | { | 2300 | memcpy(ps->addr,addr,addrlen); |
2301 | ps->addr = GNUNET_malloc(addrlen); | 2301 | ps->addrlen = addrlen; |
2302 | memcpy(ps->addr,addr,addrlen); | 2302 | /* |
2303 | ps->addrlen = addrlen; | ||
2304 | } | ||
2305 | else | 2303 | else |
2306 | { | 2304 | { |
2307 | ps->addr = NULL; | 2305 | ps->addr = NULL; |
2308 | ps->addrlen = 0; | 2306 | ps->addrlen = 0; |
2309 | } | 2307 | }*/ |
2310 | ps->direction=OUTBOUND; | 2308 | ps->direction=OUTBOUND; |
2311 | ps->recv_connected = GNUNET_NO; | 2309 | ps->recv_connected = GNUNET_NO; |
2312 | ps->recv_force_disconnect = GNUNET_NO; | 2310 | ps->recv_force_disconnect = GNUNET_NO; |