zonyitoo / sysuh3c

H3C CLI Client for SYSU, which is implemented in C/C++. With an OpenWRT version.
MIT License
116 stars 37 forks source link

eapauth.c:bugfix: fix SIGTRAP Error #25

Closed sunnyden closed 7 years ago

sunnyden commented 7 years ago

This program can not work properly on the latest OpenWrt trunk. When trying to make authentication, it throws SIGTRAP Exception like this:

EAP Auth Start
Trace/breakpoint trap

This issue is caused by the using of negative parameter when calling the function memcpy. This commit fixes this issue and has been tested on the latest OpenWrt trunk.

sunnyden commented 7 years ago

This patch would fix issue #19 as well.

zonyitoo commented 7 years ago

Hmm, I cannot remember why I added that - 6 in there. Have you tested in campus network?

sunnyden commented 7 years ago

Yes, it works fine in the campus network.