summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-19 10:04:04 +0200
committerVolker Lendecke <vl@samba.org>2012-04-19 17:37:37 +0200
commitdc3b79626022e07980be40627b9f2255d58b6e70 (patch)
tree6e2d965204cada8b610e6fbb31fc9ad631d4529d /source3
parentee8d55622fa6435ac17befc269daa28f5cfa21dc (diff)
downloadsamba-dc3b79626022e07980be40627b9f2255d58b6e70.tar.gz
samba-dc3b79626022e07980be40627b9f2255d58b6e70.tar.bz2
samba-dc3b79626022e07980be40627b9f2255d58b6e70.zip
s3: Attempt to fix Coverity ID 2748: INTEGER_OVERFLOW
Not sure this will actually please Coverity, but it fixes a severe bug
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/msg_channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/msg_channel.c b/source3/lib/msg_channel.c
index 9a174c0ed6..65976d1170 100644
--- a/source3/lib/msg_channel.c
+++ b/source3/lib/msg_channel.c
@@ -300,7 +300,7 @@ static void msg_channel_trigger(struct tevent_context *ev,
state->rec = talloc_move(state, &channel->msgs[0]);
memmove(channel->msgs, channel->msgs+1,
- sizeof(struct messaging_rec) * (num_msgs-1));
+ sizeof(struct messaging_rec *) * (num_msgs-1));
channel->msgs = talloc_realloc(
channel, channel->msgs, struct messaging_rec *, num_msgs - 1);