apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Nicholes" <BNICHO...@novell.com>
Subject Uninitialized variable in apr_ssl_socket_create()...
Date Wed, 12 Jul 2006 20:27:40 GMT
  The metrowerks compiler on NetWare is throwing an uninitialized
variable error in apr_ssl_socket_create() function.  The variable that
it is complaining about is apr_socket_t *plainSock;  The place were this
variable is being used before it has been initialized is if the call to
apu_ssl_socket_create() fails.  In this case the code tries to close
plainSock.  But since plainSock has never been assigned a value, I would
expect bad things to happen.  Shouldn't the call to apr_socket_close()
take the parameter sslSock->plain rather than plainSock?


View raw message