Commit 9c19b3ac authored by Claes Sjofors's avatar Claes Sjofors

Bugfix for subscription buffer mismatch

parent 56f51cca
...@@ -82,7 +82,8 @@ sub_UnlinkObject ( ...@@ -82,7 +82,8 @@ sub_UnlinkObject (
sp->data = pool_cNRef; sp->data = pool_cNRef;
sp->sts = GDH__NOSUCHOBJ; sp->sts = GDH__NOSUCHOBJ;
op->u.n.subcount--; if ( op->u.n.subcount > 0) /* Subscriptions on invalid offset will allocate buffer without increasing count */
op->u.n.subcount--;
} }
} }
......
...@@ -124,7 +124,8 @@ subs_UnlinkObject ( ...@@ -124,7 +124,8 @@ subs_UnlinkObject (
sp->data = pool_cNRef; sp->data = pool_cNRef;
sp->sts = GDH__NOSUCHOBJ; sp->sts = GDH__NOSUCHOBJ;
op->u.n.subcount--; if ( op->u.n.subcount > 0) /* Subscriptions on invalid offset will allocate buffer without increasing count */
op->u.n.subcount--;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment