Merge lp:~ted/remote-login-service/ubuntu-cve into lp:~ubuntu-desktop/remote-login-service/ubuntu

Proposed by Ted Gould
Status: Merged
Merge reported by: Sebastien Bacher
Merged at revision: not available
Proposed branch: lp:~ted/remote-login-service/ubuntu-cve
Merge into: lp:~ubuntu-desktop/remote-login-service/ubuntu
Diff against target: 57 lines (+39/-0)
3 files modified
debian/changelog (+6/-0)
debian/patches/01_clear_servers.patch (+32/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~ted/remote-login-service/ubuntu-cve
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+131236@code.launchpad.net

Description of the change

Fix a bug, a security one at that.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-03 21:31:01 +0000
3+++ debian/changelog 2012-10-24 16:38:06 +0000
4@@ -1,3 +1,9 @@
5+remote-login-service (1.0.0-0ubuntu2) quantal; urgency=low
6+
7+ * 01_clear_servers.patch: Clear servers on second login (LP: #1070896)
8+
9+ -- Ted Gould <ted@ubuntu.com> Wed, 24 Oct 2012 18:35:36 +0200
10+
11 remote-login-service (1.0.0-0ubuntu1) quantal; urgency=low
12
13 * New upstream release.
14
15=== added directory 'debian/patches'
16=== added file 'debian/patches/01_clear_servers.patch'
17--- debian/patches/01_clear_servers.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/01_clear_servers.patch 2012-10-24 16:38:06 +0000
19@@ -0,0 +1,32 @@
20+=== modified file 'src/uccs-server.c'
21+--- old/src/uccs-server.c 2012-09-17 07:49:30 +0000
22++++ new/src/uccs-server.c 2012-10-24 14:35:36 +0000
23+@@ -466,6 +466,10 @@
24+ static gboolean
25+ parse_rds_array (UccsServer * server, JsonArray * array)
26+ {
27++ // Got a new set of servers, delete the old one
28++ g_list_free_full(server->subservers, g_object_unref);
29++ server->subservers = NULL;
30++
31+ int i;
32+ for (i = 0; i < json_array_get_length(array); i++) {
33+ JsonNode * node = json_array_get_element(array, i);
34+
35+=== modified file 'tests/dbus-interface.c'
36+--- old/tests/dbus-interface.c 2012-09-17 07:49:30 +0000
37++++ new/tests/dbus-interface.c 2012-10-24 14:35:36 +0000
38+@@ -184,9 +184,12 @@
39+
40+ GVariant * array = g_variant_get_child_value(retval, 2);
41+ int i;
42++ // Check all servers should be in the result are in the result
43+ for (i = 0; slmockdata->servers[i].name != NULL; i++) {
44+ g_assert(find_server(array, &slmockdata->servers[i]));
45+ }
46++ // Check there is no more servers in the result than we expected
47++ g_assert(i == g_variant_n_children(array));
48+ g_variant_unref(array);
49+
50+ g_variant_unref(retval);
51+
52
53=== added file 'debian/patches/series'
54--- debian/patches/series 1970-01-01 00:00:00 +0000
55+++ debian/patches/series 2012-10-24 16:38:06 +0000
56@@ -0,0 +1,1 @@
57+01_clear_servers.patch

Subscribers

People subscribed via source and target branches

to all changes: