Commit the remainder of r398523

This is a missing part of the commit in revision 398523 that corrects
the name of a variable.

(issue ASTERISK-22435)


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@398576 f38db490-d61c-443f-a65b-d21fe96a405b