Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
freediameter
Commits
0e3c60e6
Commit
0e3c60e6
authored
Sep 24, 2011
by
Sebastien Decugis
Browse files
allow applications to create empty AVP also
parent
a40d656d
Changes
1
Show whitespace changes
Inline
Side-by-side
libfdproto/messages.c
View file @
0e3c60e6
...
...
@@ -1219,12 +1219,8 @@ int fd_msg_avp_setvalue ( struct avp *avp, union avp_value *value )
/* Duplicate an octetstring if needed. */
if
(
type
==
AVP_TYPE_OCTETSTRING
)
{
if
(
value
->
os
.
len
)
{
CHECK_MALLOC
(
avp
->
avp_storage
.
os
.
data
=
os0dup
(
value
->
os
.
data
,
value
->
os
.
len
)
);
avp
->
avp_mustfreeos
=
1
;
}
else
{
avp
->
avp_storage
.
os
.
data
=
NULL
;
}
}
/* Set the data pointer of the public part */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment