]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Fix rlm_sql noop for accounting start 19/head
authorDmitry Borodaenko <angdraug@debian.org>
Sat, 6 Aug 2011 17:15:59 +0000 (20:15 +0300)
committerDmitry Borodaenko <angdraug@debian.org>
Sun, 18 Sep 2011 09:07:15 +0000 (12:07 +0300)
commit2f3f0b90ec75a7998e292f341609c078162db579
treea5c06c61d7a6c8c9671cb27673f8ed1d190e0d69
parent0317d2c81055aef992ba7c9693872bd155797693
Fix rlm_sql noop for accounting start

When 6ed9727 was merged, else{} in the START case got placed against the
wrong if(). Unlike STOP and ALIVE cases, in START insert comes first,
and we only care if that affects 0 rows. If insert fails and we have to
go for an update, we don't have to check for NOOP because we can assume
the insert failed due to a conflicting row already in the database.
src/modules/rlm_sql/rlm_sql.c