mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
4aa1720b60c980ae18097cac35d042ff16bf2aae
Fixing:
```
src/agent.c:956:9: warning: Address of stack memory associated with local variable 'c' is still referred to by the caller variable 'agent' upon returning to the caller. This will be a dangling reference [clang-analyzer-core.StackAddressEscape]
956 | return _libssh2_error(agent->session, LIBSSH2_ERROR_BAD_USE,
| ^
src/agent.c:1164:12: note: Calling 'agent_list_identities'
1164 | return agent_list_identities(agent);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/agent.c:942:8: note: Assuming field 'state' is equal to agent_NB_state_init
942 | if(transctx->state == agent_NB_state_init) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/agent.c:942:5: note: Taking true branch
942 | if(transctx->state == agent_NB_state_init) {
| ^
src/agent.c:950:5: note: Taking false branch
950 | if(*transctx->request != SSH2_AGENTC_REQUEST_IDENTITIES)
| ^
src/agent.c:954:8: note: Assuming field 'ops' is null
954 | if(!agent->ops)
| ^~~~~~~~~~~
src/agent.c:954:5: note: Taking true branch
954 | if(!agent->ops)
| ^
```
Closes #1845
libssh2 - SSH2 library
libssh2 is a library implementing the SSH2 protocol, available under the revised BSD license.
Installation instructions:
Description
libssh2 - это библиотека, реализующая протокол SSH2, доступная по пересмотренной лицензии BSD
Languages
C
84.2%
CMake
3.7%
Perl
3.2%
M4
2.7%
Shell
2.3%
Other
3.7%