Skip to content

Commit dd71938

Browse files
committed
pfcp: Fix SEID ID setting
Properly initialize packet structure since we are recycling memory. Signed-off-by: Bastien Bailly <bailly.bastien@gmail.com> Signed-off-by: Alexandre Cassen <acassen@gmail.com>
1 parent 1765009 commit dd71938

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pfcp/pfcp_ie.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pfcp_ie_put_error_cause(struct pkt_buffer *pbuff, const uint8_t *node_id, size_t
221221

222222
int
223223
pfcp_ie_put_f_seid(struct pkt_buffer *pbuff, const uint64_t seid,
224-
const struct sockaddr_storage *addr)
224+
const struct sockaddr_storage *addr)
225225
{
226226
struct pfcp_ie_f_seid *ie;
227227
unsigned int length = sizeof(struct pfcp_ie) + sizeof(uint64_t) + 1;
@@ -242,6 +242,7 @@ pfcp_ie_put_f_seid(struct pkt_buffer *pbuff, const uint64_t seid,
242242

243243
ie = (struct pfcp_ie_f_seid *) pbuff->data;
244244
ie->seid = seid;
245+
ie->flags = 0;
245246
switch (addr->ss_family) {
246247
case AF_INET:
247248
ie->v4 = 1;

0 commit comments

Comments
 (0)