Actually I think that best is answer by jpeacock from this question Do you count the hours spent on bug fixes towards the scrum?  
Let me cite it:
- If the bug is easy/quick to fix (one
liner, etc), then just fix it.
- If the bug is not trivial, and not a
blocker, then add it to the backlog.
- If the bug is a blocker then add a
task (to the current sprint) to
capture the work required to fix it,
and start working on it. This
requires that something else be moved
(from the current sprint) to the
backlog to account for the new hours
because your total hours available
hasn't changed.