pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmocore/+/39066?usp=email )
Change subject: osmo_io: segmentation cb: Initialize null ptr every iteration
......................................................................
osmo_io: segmentation cb: Initialize null ptr every iteration
Change-Id: I0fcaa6afb9cf2f88243280f01c278fa2d72e69a6
---
M src/core/osmo_io.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/66/39066/1
diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c
index bff86d2..f374cf4 100644
--- a/src/core/osmo_io.c
+++ b/src/core/osmo_io.c
@@ -328,7 +328,7 @@
void iofd_handle_segmented_read(struct osmo_io_fd *iofd, struct msgb *msg, int rc)
{
int res;
- struct msgb *pending = NULL;
+ struct msgb *pending;
OSMO_ASSERT(iofd->mode == OSMO_IO_FD_MODE_READ_WRITE);
@@ -338,6 +338,7 @@
}
do {
+ pending = NULL;
res = iofd_handle_segmentation(iofd, msg, &pending);
if (res != IOFD_SEG_ACT_DEFER || rc < 0)
iofd->io_ops.read_cb(iofd, rc, msg);
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/39066?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I0fcaa6afb9cf2f88243280f01c278fa2d72e69a6
Gerrit-Change-Number: 39066
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>