linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #04945
[Bug 986015] Re: Uninitialized variable in libdrizzle
Actually we never get to getsockopt_error portion. There's a return
statement right before that. Doing away with the error variable is the
cleanest option since it no longer serves any purpose :)
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/986015
Title:
Uninitialized variable in libdrizzle
Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
New
Bug description:
In libdrizzle/conn.cc's drizzle_state_connecting(drizzle_con_st *con),
the int variable error in line 1338 is not initialized.
Most of the times, the random value assigned is != 0, thus entering
the block from lines 1363 - 1369. This leads to connections not being
made and erroring out.
Line 1338 should be:
int error = 0;
This is the cause of the gearmand bug:
https://bugs.launchpad.net/gearmand/+bug/955559
To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/986015/+subscriptions
References