projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc397b
)
- warning when trying to read when a read handle is already present
author
Sree Harsha Totakura
<totakura@in.tum.de>
Mon, 10 Dec 2012 20:49:10 +0000
(20:49 +0000)
committer
Sree Harsha Totakura
<totakura@in.tum.de>
Mon, 10 Dec 2012 20:49:10 +0000
(20:49 +0000)
src/stream/stream_api.c
patch
|
blob
|
history
diff --git
a/src/stream/stream_api.c
b/src/stream/stream_api.c
index a0be54d43e8caa27ddfd68552070538e47efdf5d..9c6056c01295445832923d80f7c416b4560528ed 100644
(file)
--- a/
src/stream/stream_api.c
+++ b/
src/stream/stream_api.c
@@
-3581,8
+3581,11
@@
GNUNET_STREAM_read (struct GNUNET_STREAM_Socket *socket,
__func__);
/* Return NULL if there is already a read handle; the user has to cancel that
first before continuing or has to wait until it is completed */
- if (NULL != socket->read_handle)
+ if (NULL != socket->read_handle)
+ {
+ GNUNET_break (0);
return NULL;
+ }
GNUNET_assert (NULL != proc);
switch (socket->state)
{