From 904a0bdb0da53217f6c8a42cd4f5eb5a027a0973 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Fri, 14 Jan 2011 17:58:16 +0200 Subject: [PATCH 1/1] =?utf8?q?=D0=92=D0=B8=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?utf8?q?=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=BC=D0=B8=D0=BB=D0=BA=D1=83?= =?utf8?q?=20=D1=89=D0=BE=20=D0=BF=D1=80=D0=B8=D0=B7=D0=B2=D0=BE=D0=B4?= =?utf8?q?=D0=B8=D0=BB=D0=B0=20=D0=B4=D0=BE=20=D0=BF=D0=B0=D0=B4=D1=96?= =?utf8?q?=D0=BD=D0=BD=D1=8F=20=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D0=B8?= =?utf8?q?=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=BF=D1=80=D0=BE=D0=B1=D1=96=20?= =?utf8?q?=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0=D1=86=D1=96?= =?utf8?q?=D1=97=20=D0=BA=D0=BE=D1=80=D0=B8=D1=81=D1=82=D1=83=D0=B2=D0=B0?= =?utf8?q?=D1=87=D0=B0=20=D0=B7=20=D0=BD=D0=B5=D0=BF=D1=80=D0=B0=D0=B2?= =?utf8?q?=D0=B8=D0=BB=D1=8C=D0=BD=D0=B8=D0=BC=20=D0=BB=D0=BE=D0=B3=D1=96?= =?utf8?q?=D0=BD=D0=BE=D0=BC=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20FreeRADIUS?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/plugins/store/mysql/mysql_store.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index fefadd5c..f62a846f 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -711,6 +711,13 @@ if (!(res=mysql_store_result(sock))) return -1; } +if (mysql_num_rows(res) != 1) +{ + errorStr = "User not found"; + mysql_close(sock); + return -1; +} + row = mysql_fetch_row(res); string param; -- 2.44.2