Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PPSi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projects
PPSi
Commits
638fad50
Commit
638fad50
authored
1 year ago
by
Adam Wujek
Browse files
Options
Downloads
Patches
Plain Diff
proto-standard/msg: keep len if pack_announce hook returned 0
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
4f2bc190
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto-standard/msg.c
+4
-1
4 additions, 1 deletion
proto-standard/msg.c
with
4 additions
and
1 deletion
proto-standard/msg.c
+
4
−
1
View file @
638fad50
...
...
@@ -214,6 +214,7 @@ static int msg_pack_announce(struct pp_instance *ppi)
UInteger8
*
flags8
=
buf
+
6
;;
const
struct
pp_msgtype_info
*
mf
=
pp_msgtype_info
+
PPM_ANNOUNCE_FMT
;
int
len
=
__msg_pack_header
(
ppi
,
mf
);
int
ret
=
0
;
/* Header */
__msg_set_seq_id
(
ppi
,
mf
);
...
...
@@ -236,7 +237,9 @@ static int msg_pack_announce(struct pp_instance *ppi)
*
(
Enumeration8
*
)
(
buf
+
63
)
=
DSPRO
(
ppi
)
->
timeSource
;
if
(
is_ext_hook_available
(
ppi
,
pack_announce
))
len
=
ppi
->
ext_hooks
->
pack_announce
(
ppi
);
ret
=
ppi
->
ext_hooks
->
pack_announce
(
ppi
);
if
(
ret
)
len
=
ret
;
return
len
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment