libssh2_session_supported_algs: fix compiler warning

This commit is contained in:
Jernej Kovacic 2012-01-31 23:07:21 +01:00 committed by Daniel Stenberg
parent 511a972a95
commit e68c895fc4

View File

@ -1997,7 +1997,7 @@ LIBSSH2_API int libssh2_session_supported_algs(LIBSSH2_SESSION* session,
/* correct number of pointers copied? (test the code above) */
if ( j!=ialg ) {
/* deallocate buffer */
LIBSSH2_FREE(session, *algs);
LIBSSH2_FREE(session, (void *)*algs);
*algs = NULL;
return _libssh2_error(session, LIBSSH2_ERROR_BAD_USE,