diff options
author | Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> | 2010-11-01 18:01:15 -0500 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-11-01 20:32:55 -0500 |
commit | c2866714540bec65af19240e95a10d3090df0cf9 (patch) | |
tree | 0a62f7eac009074bc6e95318c1040fa003cc288d /src/phFriNfc_LlcpTransport.h | |
parent | 2940d97c95a997ea54e3b198256b8e71bac31010 (diff) | |
download | external_libnfc-nxp-c2866714540bec65af19240e95a10d3090df0cf9.zip external_libnfc-nxp-c2866714540bec65af19240e95a10d3090df0cf9.tar.gz external_libnfc-nxp-c2866714540bec65af19240e95a10d3090df0cf9.tar.bz2 |
Fixed LLCP socket options storage.
Socket options are now copied in the libnfc to avoid referencing a pointer that
may not be valid during the whole socket life cycle.
Change-Id: I7266164bf157242df1ce7fb7a0f9cffd52938140
Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'src/phFriNfc_LlcpTransport.h')
-rw-r--r-- | src/phFriNfc_LlcpTransport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/phFriNfc_LlcpTransport.h b/src/phFriNfc_LlcpTransport.h index 27fda96..0cc3721 100644 --- a/src/phFriNfc_LlcpTransport.h +++ b/src/phFriNfc_LlcpTransport.h @@ -155,12 +155,13 @@ struct phFriNfc_LlcpTransport_Socket { phFriNfc_LlcpTransportSocket_eSocketState_t eSocket_State; phFriNfc_LlcpTransport_eSocketType_t eSocket_Type; - phFriNfc_LlcpTransport_sSocketOptions_t* psSocketOption; + phFriNfc_LlcpTransport_sSocketOptions_t sSocketOption; pphFriNfc_LlcpTransportSocketErrCb_t pSocketErrCb; /* Remote and local socket info */ uint8_t socket_sSap; uint8_t socket_dSap; + // TODO: copy service name (could be deallocated by upper layer) phNfc_sData_t sServiceName; uint8_t remoteRW; uint8_t localRW; @@ -683,4 +684,4 @@ NFCSTATUS phFriNfc_LlcpTransport_SendTo( phFriNfc_LlcpTransport_Socket_t phNfc_sData_t* psBuffer, pphFriNfc_LlcpTransportSocketSendCb_t pSend_RspCb, void* pContext); -#endif /* PHFRINFC_LLCP_TRANSPORT_H */
\ No newline at end of file +#endif /* PHFRINFC_LLCP_TRANSPORT_H */ |