projects
/
sdk
/
tools
/
sdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7ae676
)
encrypt: add socket null check
author
Sooyoung Ha
<yoosah.ha@samsung.com>
Mon, 4 Sep 2017 06:01:08 +0000
(15:01 +0900)
committer
Sooyoung Ha
<yoosah.ha@samsung.com>
Mon, 4 Sep 2017 06:01:08 +0000
(15:01 +0900)
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
src/transport.c
patch
|
blob
|
history
diff --git
a/src/transport.c
b/src/transport.c
index 191126765dc846b323f9f8db586445919eebbe38..202f67f1efb4b9a21874fc370ccec8fe8b510052 100755
(executable)
--- a/
src/transport.c
+++ b/
src/transport.c
@@
-995,7
+995,7
@@
void wakeup_select_func(int _fd, unsigned ev, void *data) {
}
}
#ifdef SUPPORT_ENCRYPT
- else if(cmd == A_ENCR){ // 암호화 handshaking메시지인 경우
+ else if(cmd == A_ENCR
&& sock != NULL
){ // 암호화 handshaking메시지인 경우
PACKET* enc_p = get_apacket();
if(p->msg.arg0 == ENCR_SET_ON_REQ){ // hello 메시지인 경우
if(security_parse_client_hello(t->sessionID, p->data, &(p->msg.data_length)) == 1) // hello 메시지 파싱