session.retrieve now returns a NO_SESSION event
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Dec 2005 14:59:39 +0000 (14:59 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Dec 2005 14:59:39 +0000 (14:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2344 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 43b0fb0..3821cf1 100644 (file)
@@ -395,7 +395,9 @@ int oilsAuthSessionRetrieve( osrfMethodContext* ctx ) {
                        osrfAppRespondComplete( ctx, jsonObjectGetKey( cacheObj, "userobj"));
                        jsonObjectFree(cacheObj);
                } else {
-                       osrfAppRespondComplete( ctx, NULL ); /* should be event.. */
+                       oilsEvent* evt = oilsNewEvent(OILS_EVENT_NO_SESSION);
+                       osrfAppRespondComplete( ctx, oilsEventToJSON(evt) ); /* should be event.. */
+                       oilsEventFree(evt);
                }
                free(key);
        }