]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Tweaked oilsAuthVerifyPassword(), mostly for clarity:
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Mar 2010 20:42:33 +0000 (20:42 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Mar 2010 20:42:33 +0000 (20:42 +0000)
commitf17a9e6fa2c036ad08282500b619573431c606e5
tree8860eeab0b668fe3702416a804d3666308530753
parent6d8be145147e933b96aac57a0e44f6a5fbec72f5
Tweaked oilsAuthVerifyPassword(), mostly for clarity:

1. Addad a doxygen-style comment block to document it, plus several comments
in the body of the function.

2. A slight rearrangement: get the password from the user object after getting
the seed from memcache, instead of before.  That way if the memcache call
fails we don't need to free the copy of the user object's password.

3. Moved the declaration of ret (the return code) closer to its first use.

4. Plugged a potential (albeit improbable) memory leak in the case of an
early exit.

Also: several minor tweaks to white space and comments elsewhere.

M    Open-ILS/src/c-apps/oils_auth.c

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15886 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/c-apps/oils_auth.c