Changeset 237 for trunk/src/trinitycore/RASocket.cpp
- Timestamp:
- 11/19/08 13:49:31 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trinitycore/RASocket.cpp
r149 r237 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 198 198 199 199 QueryResult *check = loginDatabase.PQuery( 200 201 200 "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))", 201 login.c_str(), pw.c_str()); 202 202 203 203 if(check) … … 245 245 #ifdef RA_CRYPT 246 246 247 247 char *megabuffer=strdup(szText); 248 248 unsigned int sz=strlen(megabuffer); 249 249 Encrypt(megabuffer,sz); 250 250 send(r,megabuffer,sz,0); 251 251 delete [] megabuffer; 252 253 252 253 #else 254 254 255 255 unsigned int sz=strlen(szText);