Changeset 32a2b8614528260422ecc05a560bd58085982248
- Timestamp:
- 04/21/09 23:13:44 (3 years ago)
- Author:
- Neutron Soutmun <neo.neutron@…>
- Children:
- 94c9e9e68a52a85cada2842d74d51b9407ccf5b2
- Parents:
- f94bd5c0aac9b3add3e205e811907cd60f9bb1f5
- git-committer:
- Neutron Soutmun <neo.neutron@…> (04/21/09 23:13:44)
- Message:
-
Prevent double login
2009-04-21 Neutron Soutmun <neo.neutron@…>
- src/rh-xmlrpc-server.c: Prevent the client to double login by mistake.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rf94bd5c
|
r32a2b86
|
|
| | 1 | 2009-04-21 Neutron Soutmun <neo.neutron@gmail.com> |
| | 2 | |
| | 3 | * src/rh-xmlrpc-server.c: Prevent the client to double login by mistake. |
| | 4 | |
| 1 | 5 | 2009-04-20 Neutron Soutmun <neo.neutron@gmail.com> |
| 2 | 6 | |
-
|
rb5e3f15
|
r32a2b86
|
|
| 73 | 73 | } |
| 74 | 74 | |
| | 75 | /* Check if client already registered */ |
| | 76 | member_node = member_get_node_by_id(vs, id); |
| | 77 | if (member_node != NULL) |
| | 78 | goto greeting; |
| | 79 | |
| 75 | 80 | req.id = id; |
| 76 | 81 | req.vserver_id = atoi(vserver_id); |
| … |
… |
|
| 98 | 103 | |
| 99 | 104 | rh_task_startsess(vs, &req); |
| 100 | | |
| 101 | 105 | member_node = member_get_node_by_id(vs, id); |
| 102 | 106 | |
| | 107 | greeting: |
| 103 | 108 | if (member_node != NULL) { |
| 104 | 109 | member = (struct rahunas_member *)member_node->data; |
| … |
… |
|
| 110 | 115 | |
| 111 | 116 | out: |
| 112 | | *reply_string = g_strdup("Invalid input parameters"); |
| 113 | | goto cleanup; |
| | 117 | *reply_string = g_strdup("Invalid input parameters"); |
| | 118 | goto cleanup; |
| 114 | 119 | |
| 115 | 120 | cleanup: |
| … |
… |
|
| 289 | 294 | |
| 290 | 295 | out: |
| 291 | | *reply_string = g_strdup("Invalid input parameters"); |
| 292 | | goto cleanup; |
| | 296 | *reply_string = g_strdup("Invalid input parameters"); |
| | 297 | goto cleanup; |
| 293 | 298 | |
| 294 | 299 | cleanup: |